3 Comments

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

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

Thanks mate .. really helpful

Expand full comment