Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

What is the expiry time for refresh tokens in onshape API ?

aman_singh005aman_singh005 Member Posts: 5
edited September 7 in Community Support
Hi, 
I want to know the estimated expiry time for access tokens and refresh tokens in API

Answers

  • jakeramsleyjakeramsley Member, Moderator, Onshape Employees, Developers Posts: 632
    The expiry of the access token is in the response when the token is received.
    ex.
    {
      "access_token":"<access token>",
      "token_type":"Bearer",
      "expires_in":3600,
      "refresh_token":"<refresh token>",
    }
    see: https://onshape-public.github.io/docs/oauth/
    Jake Ramsley

    Director of Quality Engineering & Release Manager              onshape.com
  • aman_singh005aman_singh005 Member Posts: 5
    Thanks for the response.
    Actually I also want to know the expiration time for refresh tokens.
    I cannot find that specified clearly anywhere.
Sign In or Register to comment.