I have react app and i able to successfully login using github and return back to the correct location. however i get code and state as url parameters in the redirected URI. when i tried to check the user or isAuthenticated. they return undefined or false. am i missing any config here so when it returns it comes back with the right user details and gets saved in the cookies/localstorage?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
'user' is undefined and isAuthenticated returns false after login | 4 | 5955 | July 29, 2022 | |
isLoading gets true, user gets undefined and isAuthenticated gets false after refresh the page in React | 0 | 2465 | October 30, 2022 | |
User is unauthenticated | 1 | 909 | August 7, 2023 | |
Successful login return undefined user and isAuthenticated as false | 0 | 124 | July 22, 2024 | |
isAuthenticated failing on refresh | 5 | 63 | May 14, 2025 |