Join BoxWorks in San Francisco Nov 12-13! Keynotes, product demos, and Box Master Classes. Reserve your spot!

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.