You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use a random string as the PAYAS_JWT_SECRET env variable and use that to both start the server and compute the JWT token after adding additional data needed to the "user" specified. For example,
JWT header:
{
"alg": "HS256",
"typ": "JWT"
}
Payload:
{
"sub":<user.sub>,
"iat": <now in seconds since epoch>,
"exp": <now+one hour in seconds since epoch>,
"role": <user.role>
}
Make requests with the header Authorization: Bearer <the computed JWT token>
The text was updated successfully, but these errors were encountered:
JWT header:
Payload:
Authorization: Bearer <the computed JWT token>
The text was updated successfully, but these errors were encountered: