Class: WebController
Hierarchy
- WebController
Index
Constructors
Methods
Constructors
constructor
+ new WebController(clientOptions
: ClientOptions, storage
: IStorage, apiOptions?
: Partial‹ApiOptions›): WebController
Defined in src/public/controllers/WebController.ts:50
Parameters:
Name | Type | Default |
---|---|---|
clientOptions |
ClientOptions | - |
storage |
IStorage | window.localStorage |
apiOptions? |
Partial‹ApiOptions› | - |
Returns: WebController
Methods
getSessionCode
▸ getSessionCode(): any
Defined in src/public/controllers/WebController.ts:118
Returns: any
getStoreValue
▸ getStoreValue(key
: string): Promise‹any›
Defined in src/public/controllers/WebController.ts:75
Parameters:
Name | Type |
---|---|
key |
string |
Returns: Promise‹any›
getUser
▸ getUser(): Promise‹any›
Defined in src/public/controllers/WebController.ts:61
Returns: Promise‹any›
sendChallenge
▸ sendChallenge(emailAddress
: string): Promise‹any›
Defined in src/public/controllers/WebController.ts:71
Parameters:
Name | Type |
---|---|
emailAddress |
string |
Returns: Promise‹any›
setStoreValue
▸ setStoreValue(key
: string, value
: string): Promise‹any›
Defined in src/public/controllers/WebController.ts:79
Parameters:
Name | Type |
---|---|
key |
string |
value |
string |
Returns: Promise‹any›
signOut
▸ signOut(): void
Defined in src/public/controllers/WebController.ts:83
Returns: void