I have created JwtFilter class under package com.springbootjwp.springbootjwt.jwtfilter.
The main objective in method of doFilterInternal is to filter username and token separately.
If we consider a JWT, we can see three main parts separated by dots. These three parts are:
· Header
· Payload
· Signature
After tested in this part, I got this token:
eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJraG1lcnNpZGUiLCJpYXQiOjE2NTg1NTc5NTEsImV4cCI6MTY1ODY0NDM1MX0.oz2HNx__8DW8X9XQ5Z-eRJ2yFCFTppcXQ3T9XQUdx-c
https://khmerside.blogspot.com/2022/07/secure-spring-boot-application-with-jwt_23.html

