#aartr-oauth-twice

1 messages · Page 1 of 1 (latest)

naive muskBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

  • aartr., 15 minutes ago, 13 messages
fresh wedge
#

Hello! What additional questions do you have?

coral creek
#

We use the flow so we receive that Auth code (I assume they were talking about access_token) from Stripe

#

Is Stripe then returning duplicate auth codes after a user completes the oauth flow?

fresh wedge
#

Not exactly - Stripe includes the auth code as a query param in the redirect_uri when the connection proess is done. It's very possible for your user to refresh the page or accidentally go to the same URL twice (with the same authorization code)

coral creek
#

Hm, this person tried reconnecting 7 days ago, and then again today

#

It seems unlikely they used the same session to do so

#

We automatically close the oauth window after it was redirected as well

#

User clicks the connect button in our interface -> we pop oath flow window -> user completes it -> window redirects internally -> we capture the auth code and close the popup automatically

fresh wedge
#

It may be worth asking the user what they're doing and also adding logging on your end to track when you're using the auth code - from what I can see in our logs, the two requests are happening in rapid succession (so the first request connects the accuont, but then the second one immediately comes in and disconnects)

coral creek
#

Ah interesting, so you are seeing a disconnect call

#

The disconnect call is oauth/deauthorize?

fresh wedge
coral creek
#

Interesting. Perhaps they have some sort of browser plugin causing a second request

#

Alright, this is super helpful. We'll investigate further. Thank you very much for your help

fresh wedge
#

👍