Welcome to the new Box Support website. Check out all the details here on what’s changed.

JWT authentication Internal Server Error

New post

Comments

1 comment

  • jcleblanc

    Hi lukasfigueiredo,

     

    Are you setting exp to the exact time returned by strtotime()? If so, that might be the issue. You'll want to set exp to the current timestamp, plus an additional 1-60 seconds in the future (the grant is valid for up to 60 seconds). For instance, here's how I'm setting it in Node / JS, adding an additional 45 seconds in the future.

     

    exp: Math.floor(Date.now() / 1000) + 45

    Hopefully that helps,

    Jon

    0
    Comment actions Permalink

Please sign in to leave a comment.