plugin/create
Creates and returns access and refresh tokens for the given user and access rights.
Request
HTTP Request
POST /token/plugin/create
Authorization
Access JSON Web Token (ManagePlugin)
Request Body
In the request body, supply user identifier, rights and expiration date.
Property Name | Required | Type | Description |
---|---|---|---|
tpc | Yes | string | Permitted topic name. |
e | No | datetime | Expiration date (UTC). |
t | Yes | integer | Token type: 0 - REFRESH, 1 - ACCESS. |
Response
If successful, this method returns a pair of access and refresh plugin tokens.
Property Name | Type | Description |
---|---|---|
accessToken | string | Access JSON Plugin Web Token. |
refreshToken | string | Refresh JSON Plugin Web Token. |
Updated less than a minute ago