Manually expire OAuth token created with Shrefile API

  • 1
  • Question
  • Updated 1 year ago

I have created an OAuth2Token using username,password,clientId and client secret using ShareFile API. From the response, expiry time of the token (expires_in) is seems like 28800 seconds (8 hour). Is there is any way to manually expire the token after the use of token?

Photo of Muhammed Niyas

Muhammed Niyas

  • 30 Posts
  • 2 Reply Likes

Posted 1 year ago

  • 1
Photo of Michael Berrier

Michael Berrier, Software Engineer

  • 123 Posts
  • 24 Reply Likes

Sorry for the delayed reply.

You should be able to manually expire a token by calling DELETE sf/v3/Sessions and using that token in the Authorization header.

Michael Berrier
ShareFile Engineering