How to sign in user and keep them signed in with react login in with google button #1377
Labels
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: question
Request for information or clarification. Not an issue.
Hi!
I am trying to make a simple sign in system but I can't seem to find the correct documentation of what to use that is up to date and works as I need it to. I have a react app, where there can be users. I have a sign in page with the sign in with google button and then I have a backend server. I want the user to be able to sign in and then stay signed in. I am not sure if I am thinking about this correct but I get a refresh token, that is saved in the localstorage and then sent with the requests to the server to be checked, but my refresh token expires after one use, how do I get around this, or if there is a better way to do this: how?
My code so far: (server side, sending a code that was generated by the code below multiple gives gives an error)
Code that sends
code that generates the code
Thanks for the help in advance!
Best regards
Philip Magyar
The text was updated successfully, but these errors were encountered: