3 Comments
User's avatar
Kishore's avatar

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
Saurabh Dashora's avatar

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
Kishore's avatar

Thanks mate .. really helpful

Expand full comment