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.

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...

Kishore's avatar

Thanks mate .. really helpful