Cryptocurrency donations for bots, groups and channels
Show a button for sending quick donations to maintainers of bots, groups or channels using cryptocurrency. This could use either an established cryptocurrency like Bitcoin, Etherium, EOS, etc. – or some…
# QUOTE BEGINS
> It looks like the authorization_code is being used more than once which
leads to disconnecting again. The exact error we are seeing is 'OAuth
Token was consumed twice, which disconnected this account from the
platform'. During the Oauth onboarding process, there are two operations
initiated by the platform : the authorize and the Oauth token request.
The authorize is a link that redirects the new user to their onboarding form :
https://stripe.com/docs/connect/oauth-reference#get-authorize
When this form is completed, Stripe responds with an <authorization_code>, or ac_ :
https://stripe.com/docs/connect/oauth-reference#get-authorize-response
This ac_ will be passed in the token request [1], in order to generate an access token [2] :
[1] https://stripe.com/docs/connect/oauth-reference#post-token
[2] https://stripe.com/docs/connect/oauth-reference#post-token-response
The access token can be used to make requests on behalf of this
connected account, but for security reasons, the
<authorization_code> can only be used once. If ever re-used, this
would lead to disconnecting the connected account from the platform.
# QUOTE ENDS