@bytexbyte/ike-app-api 1.0.13 → 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 +3 -1
- package/lib/Auth/type.d.ts +13 -1
- package/package.json +2 -2
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<{
|
|
@@ -160,6 +161,7 @@ declare class IKEAppAuthApi extends BxBApi {
|
|
|
160
161
|
phone: string;
|
|
161
162
|
}): Promise<{
|
|
162
163
|
isExisted: boolean;
|
|
164
|
+
isEnabledBiometrics?: boolean;
|
|
163
165
|
} | {
|
|
164
166
|
error: 'Phone number is required.';
|
|
165
167
|
}>;
|
package/lib/Auth/type.d.ts
CHANGED
|
@@ -92,4 +92,16 @@ export declare type SignInPhoneOTP = (provider: 'phone-otp', form: {
|
|
|
92
92
|
} | {
|
|
93
93
|
error: 'Authentication error.' | 'Field(s) cannot be empty.' | 'Invalid OTP code.';
|
|
94
94
|
}>;
|
|
95
|
-
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;
|
package/package.json
CHANGED