Issue token for a User
issue sessionJWT
of a particular User
.
Parameter
Accessible via URL https://api.channel.io/open/v5/users/@{memberId}/session-jwt/issue and HTTP PUT
Parameter | Example | Required | Description | Parameter Type |
---|---|---|---|---|
memberId | 12345 | Required | memberId of User | Path |
expiration | PT30M | Optional | If this property is null, the expiration is set to 1 minute(PT1M). | Query |
Example
PUT https://api.channel.io/open/v5/users/@12345/session-jwt/issue?expiration=PT30M
Response
Returns an object which includes sessionJWT
, and expireAt
{
"sessionJWT" : "dfw123asdfa.12asda23sdfawe.12adaefaw34",
"expireAt" : 1689821504019
}
Updated about 2 months ago