I need to implement Stripe Connect in my project, So i am following this guide
OAuth flow worked perfectly and I received the JSON response as expected in my /stripe/callback endpoint -
{
"token_type": "bearer",
"stripe_publishable_key": PUBLISHABLE_KEY,
"scope": "read_write",
"livemode": false,
"stripe_user_id": USER_ID,
"refresh_token": REFRESH_TOKEN,
"access_token": ACCESS_TOKEN
}
Now my question is : How do i associate this returned object with the user in my application ?
I am not using cookies in my application as all of my routes are for REST API that's client agnostic. I usually use a token in header to identify the client user.
But in this case when Stripe redirects, i don't get any information that tells me which user registered in Stripe.