auth0-samples / auth0-javascript-samples

Auth0 Integration Samples for Vanilla JavaScript Applications

Home Page:https://auth0.com/docs/quickstart/spa/vanillajs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

invalid_token trying to log in

HeikerAraujo opened this issue · comments

Project: 03-Calling-an-API

error: invalid_token
errorDescripcion: "The token was issued in the future. Please check your computed clock.

image

Hi, how did you solved it?

You can either sync your system clock or you can set some leeway time. To set leeway, add this to your WebAuth config options:

{
  // ...

  // 30 seconds of leeway
  leeway: 30
}

Thank you so much, it worked.