Hi there. Thank you to all the developers /maintainers of supertokens! I've been loving the development experience so far.
I have been having a weird issue I was hoping I could get some help with. On initial login locally I am always getting a refresh token through the third party login flow (right now I am using google).
When i deployed my app to AWS, I now only get a refresh token on the initial login flow, but not on subsequent logins. I would guess this is something on the google side, but I was wondering if this is something others have experiences or have some familiarity with.
lucasf4703
09/14/2023, 7:24 PM
@rp_st let me know if attaching any code would be helpful!
r
rp_st
09/15/2023, 5:35 AM
Hey @lucasf4703 when you say initial login, what do you mean?
rp_st
09/15/2023, 5:35 AM
Is it before logging in or after logging in?
l
lucasf4703
09/20/2023, 11:35 PM
so when i first sign up/authorize the app, i always get both the access token and refresh token.
Locally every time i log in after that, i get both tokens.
but in my deployed env, i get the refresh + access on sign up, but only get the access token on subsequent logins
r
rp_st
09/21/2023, 5:25 AM
hmm. Im not quite sure why that would happen. Maybe you have some proxy? Not sure..
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).