Files
clerk-sdk-java/docs/models/operations/CreateActorTokenRequestBody.md
2024-06-13 13:51:50 -04:00

11 lines
5.6 KiB
Markdown

# CreateActorTokenRequestBody
## Fields
| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `userId` | *String* | :heavy_check_mark: | The ID of the user that can use the newly created sign in token. | |
| `actor` | Map<String, *java.lang.Object*> | :heavy_check_mark: | The actor payload. It needs to include a sub property which should contain the ID of the actor.<br/>This whole payload will be also included in the JWT session token. | {<br/>"sub": "user_2OEpKhcCN1Lat9NQ0G6puh7q5Rb"<br/>} |
| `expiresInSeconds` | *Optional<? extends Long>* | :heavy_minus_sign: | Optional parameter to specify the life duration of the actor token in seconds.<br/>By default, the duration is 1 hour. | |
| `sessionMaxDurationInSeconds` | *Optional<? extends Long>* | :heavy_minus_sign: | The maximum duration that the session which will be created by the generated actor token should last.<br/>By default, the duration of a session created via an actor token, lasts 30 minutes. | |