SAAS-Starter-Kit-Pro
SAAS-Starter-Kit-Pro copied to clipboard
JWT token decode failed
JWT token decode failed
appeared during login and fail to login.
src/screens/Auth/helpers.js:128
is having JWT token decode failed. I check back and found out it is because the src/screens/Auth/helpers.js:122
token
is not working.
The token in src/screens/Auth/helpers.js:86
doesn't bring an jwt token. Anyone knows how to solve this?
let token = await firebase
.auth()
.currentUser.getIdToken()
.catch((err) => {
fetchFailure(err);
});
Reopen this as I initiated both client and server part and still this issue is happening.
@SkyYap Did you add your AUTH_SECRET in the .env file?
@SkyYap Did you add your AUTH_SECRET in the .env file?
Yup. I did add AUTH_SECRET.
Closed as I found no issue running on render.com.