Skip to content

Commit

Permalink
ActivationHelper allows create SDK with prepare data.
Browse files Browse the repository at this point in the history
  • Loading branch information
hvge committed Sep 29, 2022
1 parent 7b4745a commit b04738d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/helpers/ActivationHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,10 @@ export class ActivationHelper<SDK, PrepareResult> {

/**
* Return SDK instance. If there's no sdkFactory function set, then throws an error.
* @param prepareData Optional `ActivationHelperPrepareData` object.
*/
async getPowerAuthSdk(): Promise<SDK> {
async getPowerAuthSdk(prepareData: ActivationHelperPrepareData | undefined = undefined): Promise<SDK> {
this.prepareData = prepareData
return await this.withSDK(a => a)
}

Expand Down

0 comments on commit b04738d

Please sign in to comment.