0

The response body of access token API of SharePoint contains

"token_type": "Bearer","expires_in": "86399","not_before": "1590557783","expires_on": "1590644483"

these parameters along with the bearer token. Since this bearer token is required in all other SharePoint rest API calls, so is there a way to cache/store this bearer token till it expires and reuse this token so that I do not have to call the access token API again and again for all other API calls where bearer token is required. I am using this in a Java based application.

0

MS provided a library for Jave that could help to store and cache the token, you may have a try it:

And here are some demos:

BR

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.