@opexa/portal-sdk 0.0.128 → 0.0.129
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/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +25 -22
- package/dist/index.mjs.map +1 -1
- package/dist/services/auth.service.d.ts +1 -3
- package/dist/services/types.d.ts +5 -1
- package/package.json +1 -1
|
@@ -10,9 +10,7 @@ export declare class AuthService {
|
|
|
10
10
|
private platform;
|
|
11
11
|
constructor(config: AuthServiceConfig);
|
|
12
12
|
private get headers();
|
|
13
|
-
createSession(input: CreateSessionInput
|
|
14
|
-
reCAPTCHAResponse?: string;
|
|
15
|
-
}): Promise<OperationResult<CreateSessionError, CreateSessionMutation>>;
|
|
13
|
+
createSession(input: CreateSessionInput): Promise<OperationResult<CreateSessionError, CreateSessionMutation>>;
|
|
16
14
|
authenticate(input: AuthenticateInput): Promise<OperationResult<AuthenticateError, AuthenticateMutation>>;
|
|
17
15
|
refreshSession(refreshToken: string): Promise<OperationResult<RefreshSessionError, RefreshSessionMutation>>;
|
|
18
16
|
destroySession(accessToken: string): Promise<OperationResult>;
|
package/dist/services/types.d.ts
CHANGED
|
@@ -968,6 +968,7 @@ export type CreateSessionInput = {
|
|
|
968
968
|
verificationCode?: never;
|
|
969
969
|
sessionId?: never;
|
|
970
970
|
token?: never;
|
|
971
|
+
reCAPTCHAResponse?: string;
|
|
971
972
|
} | {
|
|
972
973
|
name?: never;
|
|
973
974
|
password?: never;
|
|
@@ -975,6 +976,7 @@ export type CreateSessionInput = {
|
|
|
975
976
|
verificationCode: string;
|
|
976
977
|
sessionId?: never;
|
|
977
978
|
token?: never;
|
|
979
|
+
reCAPTCHAResponse?: string;
|
|
978
980
|
} | {
|
|
979
981
|
name?: never;
|
|
980
982
|
password?: never;
|
|
@@ -982,6 +984,7 @@ export type CreateSessionInput = {
|
|
|
982
984
|
verificationCode?: never;
|
|
983
985
|
sessionId: string;
|
|
984
986
|
token?: never;
|
|
987
|
+
reCAPTCHAResponse?: string;
|
|
985
988
|
} | {
|
|
986
989
|
name?: never;
|
|
987
990
|
password?: never;
|
|
@@ -989,6 +992,7 @@ export type CreateSessionInput = {
|
|
|
989
992
|
verificationCode?: never;
|
|
990
993
|
sessionId?: never;
|
|
991
994
|
token: string;
|
|
995
|
+
reCAPTCHAResponse?: string;
|
|
992
996
|
};
|
|
993
997
|
export type Authenticator = {
|
|
994
998
|
type: 'SECURITY_QUESTION';
|
|
@@ -1006,7 +1010,7 @@ export type CreateSessionMutation = {
|
|
|
1006
1010
|
refreshToken?: never;
|
|
1007
1011
|
authenticator: Authenticator;
|
|
1008
1012
|
};
|
|
1009
|
-
export type CreateSessionError = 'AccountNotFoundError' | 'AccountBlacklistedError';
|
|
1013
|
+
export type CreateSessionError = 'AccountNotFoundError' | 'AccountBlacklistedError' | 'InvalidReCAPTCHAResponseError';
|
|
1010
1014
|
export type RefreshSessionError = 'InvalidTokenError' | 'AccountBlacklistedError' | 'SessionExpiredError';
|
|
1011
1015
|
export interface RefreshSessionMutation {
|
|
1012
1016
|
accessToken: string;
|