Hello everyone, I'm using the Auth0 JWT library to...
# android
c
Hello everyone, I'm using the Auth0 JWT library to communicate with an API. Everything works fine on the emulator (I'm currently logging in), but when I try to log in with a physical device, I get this error: "Cannot handle token with iat prior to 2025-08-04T124445+0300". As far as I understand, this problem is caused by the following part of my code: "val issuedAt = System.currentTimeMillis() val expiresAt = issuedAt + 300 * 1000" How can I solve this?
not kotlin but kotlin colored 4
google 2
stackoverflow 3
c
Image from iOS.jpg
🤣 1
👎 1
👍🏻 1
j
Does the device have the correct time settings?
👍 2
e
Do you generate the token client side ?
c
There was no problem with the time settings, the problem was solved when I restarted the device and the android studio @Justin Salér
@essid101010 Yes, I generate a Jwt token using auth0, add the login and key information to the payload and encrypt it