getSession

Function

Re-hydrate a UserSession from a browser's local storage. If not found,

  • getSession(clientId: string, win: any) : UserSession | null

Parameters

Parameter Type Default Notes
clientId Required string

oAuth Client Id

win Optional any window

optional window (used for testing)

Returns

UserSession | null

Function defined in common/src/utils/sessionLocalStorage.ts:26