-
Notifications
You must be signed in to change notification settings - Fork 513
docs: Document requires_totp_mfa JWT claim #1281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from all commits
3af68cc
b094812
c2e0383
0590fb3
5919d21
0818d01
9f87333
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -42,6 +42,7 @@ Stack Auth JWTs contain standardized headers and claims that power authenticatio | |||||
| - **`project_id`**: Your Stack Auth project ID | ||||||
| - **`branch_id`**: The project branch (currently always `main`) | ||||||
| - **`refresh_token_id`**: ID of the associated refresh token | ||||||
| - **`requires_totp_mfa`**: Whether the user has TOTP multi-factor authentication enabled | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The added description says "Whether the user has TOTP multi-factor authentication enabled," but the internal OpenAPI spec in Consider aligning the docs with the existing internal description:
Suggested change
|
||||||
| - **`role`**: Always set to `authenticated` for valid users | ||||||
| - **`name`**: The user's display name (nullable) | ||||||
| - **`email`**: The user's primary email address (nullable) | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Citation: Based on commit c8b5168 "Add requires_totp_mfa to JWT". The commit added
requires_totp_mfatotokens.tsx,schema-fields.ts, and the example JWT injwt.mdx, but didn't add a description in the Stack Auth Specific Claims section. The field indicates whether the user has TOTP MFA enabled, as shown in the e2e tests inaccess-token-refresh.test.ts.View source