You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe the problem.
Currently, developers need to manually generate JWT tokens by creating a custom method that includes the necessary claims and signing credentials. This process can be repetitive and prone to errors if not done correctly.
Describe the solution you'd like
Introduce a GenerateJwtTokenAsync method in the SignInManager class that automatically generates a JWT token with the necessary claims and signing credentials. The method should take parameters similar to SignInManager.SignInAsync, such as the user object and additional claims.
Simplifies the process of generating JWT tokens by providing a built-in method.
Ensures consistency and security in JWT token generation across applications.
Reduces the likelihood of misconfiguration and potential security vulnerabilities.
Provides a similar level of convenience as the SignInManager.SignInAsync method for cookie-based authentication.
Additional Context:
This feature request is inspired by the convenience and security provided by the SignInManager.SignInAsync method for cookie-based authentication. Having a similar method for JWT authentication would provide a consistent and secure experience for developers.
The text was updated successfully, but these errors were encountered:
i read it,ok let's focous only on createing prepared generatjwttoken , instead of let users make it full manually, i think it's better to provide it prepared and provide options for it as params or optiotion to enable user to control it without error
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
Currently, developers need to manually generate JWT tokens by creating a custom method that includes the necessary claims and signing credentials. This process can be repetitive and prone to errors if not done correctly.
Describe the solution you'd like
Introduce a
GenerateJwtTokenAsync
method in theSignInManager
class that automatically generates a JWT token with the necessary claims and signing credentials. The method should take parameters similar toSignInManager.SignInAsync
, such as the user object and additional claims.Example Code:
Additional context
Benefits:*
SignInManager.SignInAsync
method for cookie-based authentication.Additional Context:
This feature request is inspired by the convenience and security provided by the
SignInManager.SignInAsync
method for cookie-based authentication. Having a similar method for JWT authentication would provide a consistent and secure experience for developers.The text was updated successfully, but these errors were encountered: