@bytexbyte/ike-app-api 1.0.14 → 1.0.15
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 +13 -13
- 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, SignInPhoneOTP } from './type';
|
|
2
|
+
import { SignInAppleMobile, SignInEmailBiometrics, SignInEmailPassword, SignInFacebookMobile, SignInGoogleAndroid, SignInGoogleIos, SignInKyc, SignInPhoneOTP, SignInPhoneBiometrics } from './type';
|
|
3
3
|
declare type User = {
|
|
4
4
|
id: string;
|
|
5
5
|
image: string | null;
|
|
@@ -99,6 +99,7 @@ declare class IKEAppAuthApi extends BxBApi {
|
|
|
99
99
|
signIn(provider: Parameters<SignInEmailBiometrics>[0], form: Parameters<SignInEmailBiometrics>[1]): Promise<Awaited<ReturnType<SignInEmailBiometrics>>>;
|
|
100
100
|
signIn(provider: Parameters<SignInKyc>[0], form: Parameters<SignInKyc>[1]): Promise<Awaited<ReturnType<SignInKyc>>>;
|
|
101
101
|
signIn(provider: Parameters<SignInPhoneOTP>[0], form: Parameters<SignInPhoneOTP>[1]): Promise<Awaited<ReturnType<SignInPhoneOTP>>>;
|
|
102
|
+
signIn(provider: Parameters<SignInPhoneBiometrics>[0], form: Parameters<SignInPhoneBiometrics>[1]): Promise<Awaited<ReturnType<SignInPhoneBiometrics>>>;
|
|
102
103
|
signOut(): Promise<any>;
|
|
103
104
|
getSession(): Promise<Session>;
|
|
104
105
|
createToken(): Promise<{
|
package/lib/Auth/type.d.ts
CHANGED
|
@@ -70,18 +70,6 @@ export declare type SignInEmailBiometrics = (provider: 'email-biometrics', form:
|
|
|
70
70
|
id?: undefined;
|
|
71
71
|
error: 'Authentication error.' | 'Field(s) cannot be empty.' | 'id not found.' | 'Email not verified.' | 'Sign in to turn on biometrics.' | 'New device login requires password credentials.' | 'signature error.' | 'URL not found.';
|
|
72
72
|
}>;
|
|
73
|
-
export declare type SignInPhoneBiometrics = (provider: 'phone-biometrics', form: {
|
|
74
|
-
publicKey: string;
|
|
75
|
-
id: string;
|
|
76
|
-
signature: string;
|
|
77
|
-
csrfToken?: string;
|
|
78
|
-
}) => Promise<{
|
|
79
|
-
id: string;
|
|
80
|
-
error?: undefined;
|
|
81
|
-
} | {
|
|
82
|
-
id?: undefined;
|
|
83
|
-
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.';
|
|
84
|
-
}>;
|
|
85
73
|
export declare type SignInKyc = (provider: 'kyc', form: {
|
|
86
74
|
kycId: string;
|
|
87
75
|
firstName: string;
|
|
@@ -104,4 +92,16 @@ export declare type SignInPhoneOTP = (provider: 'phone-otp', form: {
|
|
|
104
92
|
} | {
|
|
105
93
|
error: 'Authentication error.' | 'Field(s) cannot be empty.' | 'Invalid OTP code.';
|
|
106
94
|
}>;
|
|
107
|
-
export declare type
|
|
95
|
+
export declare type SignInPhoneBiometrics = (provider: 'phone-biometrics', form: {
|
|
96
|
+
publicKey: string;
|
|
97
|
+
id: string;
|
|
98
|
+
signature: string;
|
|
99
|
+
csrfToken?: string;
|
|
100
|
+
}) => Promise<{
|
|
101
|
+
id: string;
|
|
102
|
+
error?: undefined;
|
|
103
|
+
} | {
|
|
104
|
+
id?: undefined;
|
|
105
|
+
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.';
|
|
106
|
+
}>;
|
|
107
|
+
export declare type SignIn = SignInEmailPassword | SignInGoogleIos | SignInGoogleAndroid | SignInFacebookMobile | SignInAppleMobile | SignInEmailBiometrics | SignInKyc | SignInPhoneOTP | SignInPhoneBiometrics;
|