How to Redirect Login Button to Google Login ?(React.js)I have done all the setting
How to Redirect Login Button to Google Login ?(React.js)
I have done all the setting
4 Replies
You are going to have to show some code and/or settings and details on errors, etc. for anyone to help you.
Okay
I solved that issue and now working on logout.
But one more thing I am stuck that
Is there any hook that check whether the user is authenticated or not ?
Just like isAuthenticated in 0Auth.
await getSession will be null if the user is not in the process of being logged in, and then either error or return a session with the user object if they are authenticated.
Thanks 🙏👍