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
garyaustin
garyaustin3y ago
You are going to have to show some code and/or settings and details on errors, etc. for anyone to help you.
thatsbro
thatsbroOP3y ago
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.
garyaustin
garyaustin3y ago
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.
thatsbro
thatsbroOP3y ago
Thanks 🙏👍

Did you find this page helpful?