Methods

Objects

session

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

Methods

session.all

Description

Gets all the currently active session tokens for the current user

Signature

method: session.all

params: []

Parameters

No parameters.

Result

Type Description Format/Object
array List of Session Tokens Array of Authentication.Session objects.

session.create

Description

Creates a Session Token based on current user

Signature

method: session.create

params: []

Parameters

No parameters.

Result

Type Description Format/Object
object Newly created SessionToken Object: Authentication.Session

session.delete

Description

Deletes the current token

Signature

method: session.delete

params: []

Parameters

No parameters.

Result

Type Description Format/Object

session.flush

Description

Flush all the session tokens for the current user

Signature

method: session.flush

params: []

Parameters

No parameters.

Result

Type Description Format/Object

session.refresh

Description

Refresh the currently used Token

Signature

method: session.refresh

params: []

Parameters

No parameters.

Result

Type Description Format/Object
object Newly created SessionToken (the old one is deleted) Object: Authentication.Session

session.status

Description

Get the status of currently used Token

Signature

method: session.status

params: []

Parameters

No parameters.

Result

Type Description Format/Object
object SessionToken object Object: Authentication.Session