File tree Expand file tree Collapse file tree
content/docs/(guides)/concepts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -124,6 +124,8 @@ const jwks = jose.createRemoteJWKSet(
124124 new URL('https://api.stack-auth.com/api/v1/projects/YOUR_PROJECT_ID/.well-known/jwks.json?include_anonymous=true&include_restricted=true')
125125);
126126
127+ // Restricted (non-anonymous) users use the same issuer as regular users,
128+ // so only two issuers are needed even though there are three audiences
127129const { payload } = await jose.jwtVerify(token, jwks, {
128130 issuer: [
129131 'https://api.stack-auth.com/api/v1/projects/YOUR_PROJECT_ID',
Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ Anonymous user tokens have the same shape, but:
8686
8787Restricted user tokens (e.g., users who haven't verified their email when verification is required) have:
8888
89+ - ` iss ` remains unchanged (same as regular users)
8990- ` aud ` becomes ` <project-id>:restricted `
9091- ` is_restricted ` is ` true `
9192- ` restricted_reason ` is ` { "type": "email_not_verified" } `
You can’t perform that action at this time.
0 commit comments