Saas-Starter-Kit / SAAS-Starter-Kit-Pro

A boilerplate for building Software-as-Service (SAAS) apps with Reactjs, and Nodejs
https://www.saasstarterkit.com/
MIT License
598 stars 140 forks source link

JWT token decode failed #17

Closed SkyYap closed 1 year ago

SkyYap commented 2 years ago

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);
    }); 
SkyYap commented 2 years ago

Reopen this as I initiated both client and server part and still this issue is happening.

larisonjustin commented 1 year ago

@SkyYap Did you add your AUTH_SECRET in the .env file?

SkyYap commented 1 year ago

@SkyYap Did you add your AUTH_SECRET in the .env file?

Yup. I did add AUTH_SECRET.

SkyYap commented 1 year ago

Closed as I found no issue running on render.com.