serverless-authentication-boilerplate icon indicating copy to clipboard operation
serverless-authentication-boilerplate copied to clipboard

what is the meaning of TOKEN_SECRET?

Open vazch opened this issue 6 years ago • 2 comments

I don't understand why is it necessary? I leave "token-secret-123" and my project works prefect, so how it works?

vazch avatar May 22 '18 16:05 vazch

@01123899 it's a cryptographic security measure, makes the application more secure when you update that to something random that no one but you knows

jppope avatar Jul 29 '18 00:07 jppope

@01123899 TOKEN_SECRET is the secret that'll be used to sign your tokens, if you don't change the default secret to a more secure string, you'll expose your system to anyone capable to create token with the same signature.

dbrrt avatar Jan 06 '19 03:01 dbrrt