What’s the secret for on the express?

Asked

Viewed 165 times

-1

I have an express application, but I do not know how important it is to set up secret in middleware session().

Could someone explain to me what secret does? What is the function?

1 answer

2


Yes, you should have that. A session secret in connect is simply used to calculate the hash. Without the string, access to the session would be "denied". Take a look at the connecting documents, that should help a little.

  • Thanks for the reply, thanks!

  • Friend, do you know anything about Ionic dependencies? I have an open question, but no one has answered me yet. Link: https://answall.com/questions/405856/problema-de-depend%C3%aancia-Ionic-x-firebase

  • I’m gonna go check it out

Browser other questions tagged

You are not signed in. Login or sign up in order to post.