Sign Up
Go Pro Sign Up Login

Buy Now and unlock this series

$

49

.99

$

29

.99

yours forever

Become a Pro and unlock everything

$

24

.99

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.

Downloads

Become a pro to download code and videos

Comments

Hartwig

27 days 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 2 months ago

Your sudo code makes things so clear! Thanks

Want to join the conversation?

Become a Pro member today!