AppFactory
@appfire/fuse-auth-core • Docs
@appfire/fuse-auth-core / AppFactory
Class: AppFactory
Factory class for creating instances of App.
Constructors
new AppFactory()
new AppFactory():
AppFactory
Returns
Methods
getAppFromDynamo()
static
getAppFromDynamo(key
,clientKey
):Promise
\<undefined
|object
>
Retrieves the app data from DynamoDB based on the key and clientKey.
Parameters
• key: string
The app key.
• clientKey: string
The client key.
Returns
Promise
\<undefined
| object
>
A Promise that resolves to the app data.
Defined in
getInstance()
static
getInstance(key
,clientKey
):Promise
\<App
>
Retrieves an instance of App based on the key and clientKey.
Parameters
• key: string
The app key.
• clientKey: string
The client key.
Returns
Promise
\<App
>
A Promise that resolves to an instance of App.
Throws
Error if the app cannot be found.
Defined in
getInstanceFromJson()
static
getInstanceFromJson(appData
):App
Creates an instance of App from JSON data.
Parameters
• appData
The JSON data representing the app.
• appData.productType: string
Returns
An instance of App.