When the REST API is used with an expired JWT, the following warning:
Error while parsing JWT token
This is misleading and suggests that the JWT is submitted incorrectly, which is not the case. It would be nice if cc-backend reports expired JWTs as 'expired' or something similar, so admins know they have to renew the JWT.
Perhaps this can be obtained from the error here?
|
token, err := jwt.Parse(rawtoken, func(t *jwt.Token) (any, error) { |
When the REST API is used with an expired JWT, the following warning:
This is misleading and suggests that the JWT is submitted incorrectly, which is not the case. It would be nice if cc-backend reports expired JWTs as 'expired' or something similar, so admins know they have to renew the JWT.
Perhaps this can be obtained from the error here?
cc-backend/internal/auth/jwt.go
Line 87 in 3c1a7e0