SAAS-Starter-Kit-Pro icon indicating copy to clipboard operation
SAAS-Starter-Kit-Pro copied to clipboard

JWT token decode failed

Open SkyYap opened this issue 2 years ago • 1 comments

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 avatar Sep 21 '22 20:09 SkyYap

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

SkyYap avatar Oct 03 '22 07:10 SkyYap

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

larisonjustin avatar Feb 19 '23 00:02 larisonjustin

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

Yup. I did add AUTH_SECRET.

SkyYap avatar Apr 10 '23 05:04 SkyYap

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

SkyYap avatar Apr 18 '23 02:04 SkyYap