Phoenix.Token
Phoenix built-in generate and verify signed tokens(not encrypted, so can verify data was signed not hide data)
Arg 1: Uses the secret key base configured in the endpoint
Arg 2: cryptographic salt, kinda like a namespace
^Must be same in sign and verify
Arg 3: What to codify in the string
Extra
Also has encrypt
and decrypt
Last updated