java-spring-security-example icon indicating copy to clipboard operation
java-spring-security-example copied to clipboard

Login issue.

Open yavor300 opened this issue 4 years ago • 0 comments

Hello!

I found your Jwt implementation interesting and decided to test it on my own.

I have a question though...

When I try to register a user there is no problem, everything works fine.

But, when I try to log in with the correct username and password combination, I got an error from the "validate" method inside the JwtTokenUtil class.

Could you please tell me how the user is supposed to log in without receiving an error for the token?

Also, what is the purpose of the JwtSecret variable? I can't understand what it is used for.

I will be very thankful if you can clarify the situation for me.

Have a nice day!

yavor300 avatar Jun 11 '21 16:06 yavor300