DEV Community

Discussion on: User Authentication + JWT Authorization With Flutter and Node

Collapse
 
bisquits profile image
Melinda Uivari • Edited

Thanks a lot! I was looking for this.
Also a tip: if you're using non-ascii characters in the username or other user data that you store in the payload, you will get a format exception. (I needed some time to figure out what had caused the problem, hahah!) The fix is to use utf8.decode() instead of ascii.decode().

Collapse
 
carminezacc profile image
Carmine Zaccagnino

You're completely right! I'm sorry I didn't read your comments earlier but I was really busy and didn't notice!