-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add metadata field to API reference
- Loading branch information
1 parent
7f85566
commit be6a8c3
Showing
2 changed files
with
16 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,9 +15,9 @@ Returns Content-Type: application/json | |
|
||
### auth/register | ||
|
||
Description: Register a user. Returns a JWT access token and sets a refresh | ||
token (as a http only cookie). JWTs are used by your web application to authenticate | ||
a user with your backend APIs. | ||
Description: Register a user. Returns a JWT access token and sets a refresh token (as a http only cookie). JWTs are used by your web application to authenticate a user with your backend APIs. | ||
|
||
Optional: Pass an arbitrary object to data.attributes.metdata which will be made available as a claim on the user's JWT issued after login. | ||
|
||
**POST** Request Body: | ||
|
||
|
@@ -28,7 +28,10 @@ a user with your backend APIs. | |
"attributes": { | ||
"name": "Authy Person", | ||
"email": "[email protected]", | ||
"password": "mysecretpass" | ||
"password": "mysecretpass", | ||
"metadata": { | ||
"tenant": "tenantID" | ||
} | ||
} | ||
} | ||
} | ||
|
@@ -102,6 +105,8 @@ Bearer Token Required: `Authorization: Bearer {user's access token}` | |
|
||
All fields in the user's attributes are optional. | ||
|
||
Pass an arbitrary object to data.attributes.metdata which will be made available as a claim on the user's JWT issued after login. | ||
|
||
**POST** Request Body: | ||
|
||
```json | ||
|
@@ -111,7 +116,10 @@ All fields in the user's attributes are optional. | |
"attributes": { | ||
"name": "Authy Person_updated", | ||
"email": "[email protected]", | ||
"password": "mysecretpass" | ||
"password": "mysecretpass", | ||
"metadata": { | ||
"tenant": "tenantID" | ||
} | ||
} | ||
} | ||
} | ||
|