Methods
Objects
Manage authentication with SLT
Method | Description |
---|---|
session.all | Gets all the currently active session tokens for the current user |
session.create | Creates a Session Token based on current user |
session.delete | Deletes the current token |
session.flush | Flush all the session tokens for the current user |
session.refresh | Refresh the currently used Token |
session.status | Get the status of currently used Token |
session.all
Gets all the currently active session tokens for the current user
method: session.all
params: []
No parameters.
Type | Description | Format/Object |
---|---|---|
array | List of Session Tokens | Array of Authentication.Session objects. |
session.create
Creates a Session Token based on current user
method: session.create
params: []
No parameters.
Type | Description | Format/Object |
---|---|---|
object | Newly created SessionToken | Object: Authentication.Session |
session.delete
Deletes the current token
method: session.delete
params: []
No parameters.
Type | Description | Format/Object |
---|---|---|
session.flush
Flush all the session tokens for the current user
method: session.flush
params: []
No parameters.
Type | Description | Format/Object |
---|---|---|
session.refresh
Refresh the currently used Token
method: session.refresh
params: [string refresh_token]
Parameter | Type | Description | NULL |
---|---|---|---|
refresh_token | string | The corresponding refresh token. | NO |
Type | Description | Format/Object |
---|---|---|
object | Newly created SessionToken (the old one is deleted) | Object: Authentication.Session |
session.status
Get the status of currently used Token
method: session.status
params: []
No parameters.
Type | Description | Format/Object |
---|---|---|
object | SessionToken object | Object: Authentication.Session |