Methods
- createSession(userId: string, token: string, connection?: ConnectionInformations, extraData?: object): Promise<string>
Parameters
userId: string
token: string
connection: ConnectionInformations = {}
optionalextraData: object
Returns Promise<string>
- findSessionById(sessionId: string): Promise<any>
Parameters
Returns Promise<any>
- findSessionByToken(token: string): Promise<any>
Parameters
Returns Promise<any>
- invalidateAllSessions(userId: string, excludedSessionIds?: string[]): Promise<void>
Parameters
userId: string
optionalexcludedSessionIds: string[]
Returns Promise<void>
- invalidateSession(sessionId: string): Promise<void>
Parameters
Returns Promise<void>
- updateSession(sessionId: string, connection: ConnectionInformations): Promise<void>
Parameters
sessionId: string
connection: ConnectionInformations
Returns Promise<void>