mirror of
https://github.com/LukeHagar/clerk-sdk-java.git
synced 2025-12-06 12:27:45 +00:00
5.6 KiB
5.6 KiB
CreateActorTokenRequestBody
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
userId |
String | ✔️ | The ID of the user that can use the newly created sign in token. | |
actor |
Map<String, java.lang.Object> | ✔️ | The actor payload. It needs to include a sub property which should contain the ID of the actor. This whole payload will be also included in the JWT session token. |
{ "sub": "user_2OEpKhcCN1Lat9NQ0G6puh7q5Rb" } |
expiresInSeconds |
Optional<? extends Long> | ➖ | Optional parameter to specify the life duration of the actor token in seconds. By default, the duration is 1 hour. |
|
sessionMaxDurationInSeconds |
Optional<? extends Long> | ➖ | The maximum duration that the session which will be created by the generated actor token should last. By default, the duration of a session created via an actor token, lasts 30 minutes. |