From Dev.to
Your API returns 401 and the token "looks fine". Read the JWT first: a 2-minute triage
Your API just returned 401, the login "worked", and nobody can say why. The answer is usually written inside the token. A JWT is not encrypted by default. The header and payload are base64url-encoded...
