Which function do you recommend for generating session auth token? #872
Closed
binarykitchen
started this conversation in
General
Replies: 1 comment 1 reply
-
All UUIDs are 32 bytes long.
UUIDs are hex-encoded, not base32, per the specification. If you want a base32 id, then you should be looking elsewhere. E.g. nanoid or ulid
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I'm about to write new code for my web app to generate user sessions after logins.
Which one uuid function is best for generating session tokens?
My only requirements are:
My guess is that uuidV4 is probably the best pick. Am I right?
Thanks for your advice
Beta Was this translation helpful? Give feedback.
All reactions