A
A
Adel Khalitov2019-05-07 16:45:13
Node.js
Adel Khalitov, 2019-05-07 16:45:13

How to pass other user parameters in passportjs?

Nodejs, express, passport backend.
When authenticating, passport saves the user a connect.sid cookie with encrypted user id data secret, sault. I also want to store the user's role, photo link, first name and last name. How can I add additional information about the user to the standard data?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question