Skip to content
Advertisement

How to use Jwts to generate Jwt Token ? Can anyone share me code..?

JavaScript

I am having only null method…Can you write logic to generate jwt token…

Advertisement

Answer

Use the below logic. Before that get the username and password from the user and authenticate it …and send the authenticationto the generate token method and generate token like this.

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement