How to get user id using jwt token
When the whole output is { iat: 1561463667 }, it means, that no extra payload/claims were added when the token was signed. The jsonwebtoken package usually adds iat (issuedAt, the time when the token was issued) as a default claim. In simple words: you can only decode claims, that were added before. To add more … Read more