#bkrnetic
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
I think it only can be used one time.
Where have you read that?
Please give me a second
Sorry, my colleague sent me that, he might have found it somewhere else and not in the Stripe docs. However, I've realized that authorization code can be used only once and that it expires in 5 minutes. I am not sure about access token?
Hi there 👋 jumping in as my teammate needs to step away soon. Are you referring to our legacy approach of using access tokens to make requests for your connected account? If so, I would not recommend using that approach as we no longer recommend using our OAuth flow for new production Connect scenarios. Instead I would recommend you follow the process outlined here for Standard accounts:
https://stripe.com/docs/connect/standard-accounts
With that approach, once the new account has been created you can make requests for that account using the Stripe-Account header along with the secret API key from your platform account, you will not need to use an access token.
https://stripe.com/docs/api/connected_accounts
So we don't need to use authorization code and access token at all any more?
Correct
Amazing! Can you confirm if these links are legacy then:
https://stripe.com/docs/connect/oauth-reference
https://stripe.com/docs/connect/oauth-standard-accounts
And please, I would appreciate if you removed embeds from your links so I have a clearer screenshot for my teammates.
Confirmed, there is a note near the top of the second doc echoing that we no longer recommend leveraging that flow.
Okey, great, thanks!