fix(curriculum): grammar mistake in advanced node and express; serialisation of user object (#53354)

This commit is contained in:
Alex Kozlov
2024-01-28 16:16:22 -05:00
committed by GitHub
parent c8f5bfab76
commit ad1ecce316

View File

@@ -8,7 +8,7 @@ dashedName: serialization-of-a-user-object
# --description--
Serialization and deserialization are important concepts in regards to authentication. To serialize an object means to convert its contents into a small *key* that can then be deserialized into the original object. This is what allows us to know who has communicated with the server without having to send the authentication data, like the username and password, at each request for a new page.
Serialization and deserialization are important concepts in regard to authentication. To serialize an object means to convert its contents into a small *key* that can then be deserialized into the original object. This is what allows us to know who has communicated with the server without having to send the authentication data, like the username and password, at each request for a new page.
To set this up properly, you need to have a serialize function and a deserialize function. In Passport, these can be created with: