RecipeInterface
RecipeInterface: { createNewSession: any; getAccessTokenLifeTimeMS: any; getAllSessionHandlesForUser: any; getRefreshTokenLifeTimeMS: any; getSession: any; getSessionInformation: any; refreshSession: any; revokeAllSessionsForUser: any; revokeMultipleSessions: any; revokeSession: any; updateAccessTokenPayload: any; updateSessionData: any }
Type declaration
createNewSession:function
- createNewSession(input: { accessTokenPayload?: any; res: any; sessionData?: any; userId: string }): Promise<SessionContainer>
Parameters
input: { accessTokenPayload?: any; res: any; sessionData?: any; userId: string }
Optional accessTokenPayload?: any
res: any
Optional sessionData?: any
userId: string
getAccessTokenLifeTimeMS:function
- getAccessTokenLifeTimeMS(): Promise<number>
getAllSessionHandlesForUser:function
- getAllSessionHandlesForUser(input: { userId: string }): Promise<string[]>
Parameters
input: { userId: string }
Returns Promise<string[]>
getRefreshTokenLifeTimeMS:function
- getRefreshTokenLifeTimeMS(): Promise<number>
getSession:function
getSessionInformation:function
Parameters
input: { sessionHandle: string }
refreshSession:function
Parameters
input: { req: any; res: any }
revokeAllSessionsForUser:function
- revokeAllSessionsForUser(input: { userId: string }): Promise<string[]>
Parameters
input: { userId: string }
Returns Promise<string[]>
revokeMultipleSessions:function
- revokeMultipleSessions(input: { sessionHandles: string[] }): Promise<string[]>
Parameters
input: { sessionHandles: string[] }
Returns Promise<string[]>
revokeSession:function
- revokeSession(input: { sessionHandle: string }): Promise<boolean>
Parameters
input: { sessionHandle: string }
Returns Promise<boolean>
updateAccessTokenPayload:function
- updateAccessTokenPayload(input: { newAccessTokenPayload: any; sessionHandle: string }): Promise<void>
Parameters
input: { newAccessTokenPayload: any; sessionHandle: string }
newAccessTokenPayload: any
sessionHandle: string
Returns Promise<void>
updateSessionData:function
- updateSessionData(input: { newSessionData: any; sessionHandle: string }): Promise<void>
Parameters
input: { newSessionData: any; sessionHandle: string }
newSessionData: any
sessionHandle: string
Returns Promise<void>
Used to retrieve all session information for a given session handle. Can be used in place of: