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

How do I construct the JWT Assertion in Google App script?

Answered
New post

Comments

1 comment

  • scuba

    There are many libraries available here as well as SDKs to handle JWT assertions. I would suggest using one that has a lot of usage and good documentation on how to use the library.

     

    JWT Assertions used with the Box API require the "exp" (expire) claim and can be set to a max of 60 seconds, though it recommended to set it to less than the maximum. So yes, you should be creating a new JWT for each access token request. However, access tokens are valid for 60 minutes so you really don't have to be creating JWTs very often.

     

    hope that helps.

    0
    Comment actions Permalink

Please sign in to leave a comment.