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
Chrimaeon
08/04/2025, 9:59 AM
Image from iOS.jpg
🤣 2
👎 2
👍🏻 1
👮♂️ 1
j
Justin Salér
08/06/2025, 9:20 PM
Does the device have the correct time settings?
👍 2
e
essid101010
08/07/2025, 9:10 AM
Do you generate the token client side ?
c
Can
08/07/2025, 9:15 AM
There was no problem with the time settings, the problem was solved when I restarted the device and the android studio @Justin Salér
Can
08/07/2025, 9:16 AM
@essid101010 Yes, I generate a Jwt token using auth0, add the login and key information to the payload and encrypt it