Open leandropnto opened 2 years ago
How I can read jwt token after successfully authenticated? For example: In my token I put user Id in JWT payload and I should read this userId to get only userId data.
use TokenUtil
var token = TokenUtil.getTokenFromHeader(context.request); var uid = TokenUtil.getClaims(token).issuer;
How I can read jwt token after successfully authenticated? For example: In my token I put user Id in JWT payload and I should read this userId to get only userId data.