@bytexbyte/ike-app-api 1.0.43 → 1.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Auth/index.d.ts +2 -1
- package/lib/Auth/type.d.ts +10 -1
- package/package.json +1 -1
package/lib/Auth/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import BxBApi from '@bytexbyte/bxb-api';
|
|
2
|
-
import { SignInAppleMobile, SignInEmailBiometrics, SignInEmailPassword, SignInFacebookMobile, SignInGoogleAndroid, SignInGoogleIos, SignInKyc, SignInPhoneBiometrics, SignInPhoneOTP } from './type';
|
|
2
|
+
import { SignInAppleMobile, SignInBerifyMe, SignInEmailBiometrics, SignInEmailPassword, SignInFacebookMobile, SignInGoogleAndroid, SignInGoogleIos, SignInKyc, SignInPhoneBiometrics, SignInPhoneOTP } from './type';
|
|
3
3
|
declare type User = {
|
|
4
4
|
id: string;
|
|
5
5
|
image: string | null;
|
|
@@ -102,6 +102,7 @@ declare class IKEAppAuthApi extends BxBApi {
|
|
|
102
102
|
signIn(provider: Parameters<SignInKyc>[0], form: Parameters<SignInKyc>[1]): Promise<Awaited<ReturnType<SignInKyc>>>;
|
|
103
103
|
signIn(provider: Parameters<SignInPhoneOTP>[0], form: Parameters<SignInPhoneOTP>[1]): Promise<Awaited<ReturnType<SignInPhoneOTP>>>;
|
|
104
104
|
signIn(provider: Parameters<SignInPhoneBiometrics>[0], form: Parameters<SignInPhoneBiometrics>[1]): Promise<Awaited<ReturnType<SignInPhoneBiometrics>>>;
|
|
105
|
+
signIn(provider: Parameters<SignInBerifyMe>[0], form: Parameters<SignInBerifyMe>[1]): Promise<Awaited<ReturnType<SignInBerifyMe>>>;
|
|
105
106
|
signOut(): Promise<any>;
|
|
106
107
|
getSession(): Promise<Session>;
|
|
107
108
|
createToken(): Promise<{
|
package/lib/Auth/type.d.ts
CHANGED
|
@@ -103,4 +103,13 @@ export declare type SignInPhoneBiometrics = (provider: 'phone-biometrics', form:
|
|
|
103
103
|
} | {
|
|
104
104
|
error: 'Authentication error.' | 'Field(s) cannot be empty.' | 'id not found.' | 'Sign in to turn on biometrics.' | 'New device login requires password credentials.' | 'signature error.' | 'URL not found.';
|
|
105
105
|
}>;
|
|
106
|
-
export declare type
|
|
106
|
+
export declare type SignInBerifyMe = (provider: 'berify-me', form: {
|
|
107
|
+
token: string;
|
|
108
|
+
csrfToken?: string;
|
|
109
|
+
}) => Promise<{
|
|
110
|
+
id: string;
|
|
111
|
+
idVerified: Date | null;
|
|
112
|
+
} | {
|
|
113
|
+
error: 'Authentication error.' | 'Field(s) cannot be empty.' | 'id not found.' | 'Sign in to turn on biometrics.' | 'New device login requires password credentials.' | 'signature error.' | 'URL not found.';
|
|
114
|
+
}>;
|
|
115
|
+
export declare type SignIn = SignInEmailPassword | SignInGoogleIos | SignInGoogleAndroid | SignInFacebookMobile | SignInAppleMobile | SignInEmailBiometrics | SignInKyc | SignInPhoneOTP | SignInPhoneBiometrics | SignInBerifyMe;
|