3 Comments
Dec 27, 2023Liked by Saurabh Dashora

Thanks a ton for sharing mate 🙏🏻 ... Just curious how the JWT / session roles would have their roles during sign up or create an account.

Expand full comment
author

The process isn't so different.

During signup, the server verifies whether the user's credentials are following the rules (like user id uniqueness and password is proper). Once done, the server can generate a JWT with the necessary claims and return it as part of a cookie...

Expand full comment
Dec 29, 2023Liked by Saurabh Dashora

Thanks mate .. really helpful

Expand full comment