Skip to main content
Question

Undocumented oauth response

  • September 28, 2021
  • 1 reply
  • 432 views

Jacob_Lapworth

It looks like the token endpoint: https://www.figma.com/api/oauth/token
is returning an undocumented user_id field which is different from the id on the users endpoint: /v1/me

Is this an internal ID that shouldn’t be exposed, or should it be documented?

POST https://www.figma.com/api/oauth/token?
  client_id=:client_id&
  client_secret=:client_secret&
  redirect_uri=:callback&
  code=:code&
  grant_type=authorization_code

{
  "access_token": <TOKEN>,
  "expires_in": <EXPIRATION (in seconds)>,
  "user_id": <ID>,
  "refresh_token": <REFRESH TOKEN>
}
This topic has been closed for replies.

  • June 27, 2024

It is documented now and should match the user who authorized the app: https://www.figma.com/developers/api#oauth2


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings