This message was deleted.
# helpdesk
s
This message was deleted.
p
Hi! I don’t think there’s currently a built-in way of checking for expiration time in the server-sdk. One way to do it would be
Copy code
const tokenPayload = token.split(".")[1];
      if (tokenPayload) {
        const tokenExpirationTime = JSON.parse(atob(tokenPayload)).exp;
...
}
❤️ 1
w
@polite-kilobyte-67570 Thank you for your answer, the problem was on the front side time, I just set it and it worked 🙂