Skip to content

Commit

Permalink
Merge pull request #7 from PlusAuth/master
Browse files Browse the repository at this point in the history
build: run prepublish before release
  • Loading branch information
ayZagen authored Sep 8, 2023
2 parents 6b40c16 + afc525c commit 6af350a
Show file tree
Hide file tree
Showing 8 changed files with 423 additions and 169 deletions.
24 changes: 20 additions & 4 deletions dist/plusauth-web.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export declare class AuthService extends HttpService {
* Submits user credentials to the endpoint `/signin`.
*
* @param fields - Key/Value object for validating user.
* @param strategy - PlusAuth strategy to check user. Make sure you have created this strategy
* @param connection - PlusAuth strategy to check user. Make sure you have created this strategy
* in your tenant.
*
* @example
Expand All @@ -38,7 +38,23 @@ export declare class AuthService extends HttpService {
*/
signIn(fields: {
[key: string]: any;
}, strategy?: string): Promise<any>;
}, connection?: string): Promise<any>;
/**
* Submits user credentials to the endpoint `/signin`.
*
* @param method - Passwordless method. For ex. email or sms
* @param fields - Key/Value object for validating user.
* in your tenant.
*
* @example
* Sign in with email passwordless strategy
* ```js
* auth.signInPasswordless( 'email', { code: "123456" } )
* ```
*/
signInPasswordless(method: string | 'sms' | 'email' | 'otp', fields: {
[key: string]: any;
}): Promise<any>;
/**
* Posts a request for registering a user.
*
Expand Down Expand Up @@ -255,8 +271,8 @@ export declare class MFAService extends HttpService {
* })
* ```
*/
validateCode(code: Record<string, any>, codeType: MFACodeType.WEBAUTHN): Promise<any>;
validateCode(code: string, codeType: Exclude<MFACodeType, MFACodeType.WEBAUTHN>): Promise<any>;
validateCode(codeType: MFACodeType.WEBAUTHN, code: Record<string, any>): Promise<any>;
validateCode(codeType: Exclude<MFACodeType, MFACodeType.WEBAUTHN>, code: string): Promise<any>;
}

/**
Expand Down
Loading

0 comments on commit 6af350a

Please sign in to comment.