Go Pro Sign Up Login
0 days 0 hrs 0 min 0 sec

Summer Sale

50% off Level Up Pro until you unsubscribe.
Get access to ALL 128 courses on Level Up Tutorials

This is your last chance to get Level Up Pro for $145/year.

or Learn More
Moon Moon

Buy Now and unlock this series







yours forever

Become a Pro and unlock everything




per month

Decoding Our JWT and UI Access

Now we will decode our JWT tokens from the server-side so that our users can access the UI.


Become a pro to download code and videos



12 months ago [edited]

Very strange behavior:

  • the app had the request - the cookies were there and it insisted to report that all this was undefined and I was ??~*!!!! So my "correction" was:

export async function getUserFromCookie(request){ const relevantTokens =request if(relevantTokens){ const {accessToken} = relevantTokens.cookies

For some reason, this worked two hours later. I suspect, I should have wiped some caches ... ? Do not know, when and why the error came to me. My patience chased it away, but I never saw an error - only its reports, but never found anything.

User avatar

Tim Smith

about 1 year ago

Your sudo code makes things so clear! Thanks

Want to join the conversation?

Become a Pro member today!