Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions npm-packages/docs/docs/auth/authkit/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -777,8 +777,19 @@ Common issues with WorkOS AuthKit integration:
matches what's configured in your WorkOS Dashboard
4. **Missing `aud` claim**: WorkOS JWTs may not include the `aud` (audience)
claim by default, which Convex requires for token validation. Check your
WorkOS Dashboard JWT configuration to ensure the audience claim is properly
set to your Client ID
WorkOS Dashboard under `Authentication > Sessions > JWT Template` to ensure the audience claim is properly
set to your Client ID. If you have not added any custom JWT properties, this will look like the following (make sure to replace the `aud` key's value with your client id).

```
{
"aud": "client_xxxxxxxxxxxxxxx",
"urn:myapp:full_name": "{{ user.first_name || 'Someone' }} {{ user.last_name || 'Unknown' }}",
"urn:myapp:email": "{{ user.email }}",
"urn:myapp:organization_tier": "{{ organization.metadata.tier || 'bronze' }}",
"urn:myapp:user_language": "{{ user.metadata.language || 'en' }}",
"urn:myapp:organization_domain": "{{ organization.domains.0.domain }}"
}
```

For more thorough debugging steps, see the WorkOS AuthKit documentation or
[Debugging Authentication](/auth/debug.mdx).
Expand Down