@aws-amplify/auth 4.6.2-next.32 → 4.6.2-next.41
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.d.ts +303 -0
- package/lib/Auth.js +150 -155
- package/lib/Auth.js.map +1 -1
- package/lib/Errors.d.ts +9 -0
- package/lib/Errors.js +2 -12
- package/lib/Errors.js.map +1 -1
- package/lib/OAuth/OAuth.d.ts +29 -0
- package/lib/OAuth/OAuth.js +2 -12
- package/lib/OAuth/OAuth.js.map +1 -1
- package/lib/OAuth/oauthStorage.d.ts +5 -0
- package/lib/OAuth/oauthStorage.js +2 -12
- package/lib/OAuth/oauthStorage.js.map +1 -1
- package/lib/OAuth/oauthStorage.native.d.ts +5 -0
- package/lib/OAuth/oauthStorage.native.js +2 -12
- package/lib/OAuth/oauthStorage.native.js.map +1 -1
- package/lib/OAuth/urlOpener.d.ts +1 -0
- package/lib/OAuth/urlOpener.js +2 -12
- package/lib/OAuth/urlOpener.js.map +1 -1
- package/lib/OAuth/urlOpener.native.d.ts +1 -0
- package/lib/OAuth/urlOpener.native.js +2 -12
- package/lib/OAuth/urlOpener.native.js.map +1 -1
- package/lib/common/AuthErrorStrings.d.ts +17 -0
- package/lib/index.d.ts +9 -0
- package/lib/index.js +2 -12
- package/lib/index.js.map +1 -1
- package/lib/types/Auth.d.ts +170 -0
- package/lib/types/Auth.js +2 -12
- package/lib/types/Auth.js.map +1 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.js +2 -12
- package/lib/types/index.js.map +1 -1
- package/lib/urlListener.d.ts +2 -0
- package/lib/urlListener.js +2 -12
- package/lib/urlListener.js.map +1 -1
- package/lib/urlListener.native.d.ts +2 -0
- package/lib/urlListener.native.js +2 -12
- package/lib/urlListener.native.js.map +1 -1
- package/lib-esm/Auth.d.ts +2 -0
- package/lib-esm/Auth.js +150 -155
- package/lib-esm/Auth.js.map +1 -1
- package/lib-esm/Errors.js +2 -12
- package/lib-esm/Errors.js.map +1 -1
- package/lib-esm/OAuth/OAuth.js +2 -12
- package/lib-esm/OAuth/OAuth.js.map +1 -1
- package/lib-esm/OAuth/oauthStorage.js +2 -12
- package/lib-esm/OAuth/oauthStorage.js.map +1 -1
- package/lib-esm/OAuth/oauthStorage.native.js +2 -12
- package/lib-esm/OAuth/oauthStorage.native.js.map +1 -1
- package/lib-esm/OAuth/urlOpener.js +2 -12
- package/lib-esm/OAuth/urlOpener.js.map +1 -1
- package/lib-esm/OAuth/urlOpener.native.js +2 -12
- package/lib-esm/OAuth/urlOpener.native.js.map +1 -1
- package/lib-esm/index.js +2 -12
- package/lib-esm/index.js.map +1 -1
- package/lib-esm/types/Auth.js +2 -12
- package/lib-esm/types/Auth.js.map +1 -1
- package/lib-esm/types/index.js +2 -12
- package/lib-esm/types/index.js.map +1 -1
- package/lib-esm/urlListener.js +2 -12
- package/lib-esm/urlListener.js.map +1 -1
- package/lib-esm/urlListener.native.js +2 -12
- package/lib-esm/urlListener.native.js.map +1 -1
- package/package.json +6 -6
- package/src/Auth.ts +109 -124
- package/src/Errors.ts +2 -12
- package/src/OAuth/OAuth.ts +2 -12
- package/src/OAuth/oauthStorage.native.ts +2 -12
- package/src/OAuth/oauthStorage.ts +2 -12
- package/src/OAuth/urlOpener.native.ts +2 -12
- package/src/OAuth/urlOpener.ts +2 -12
- package/src/index.ts +2 -12
- package/src/types/Auth.ts +2 -12
- package/src/types/index.ts +2 -12
- package/src/urlListener.native.ts +2 -12
- package/src/urlListener.ts +2 -12
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { ICookieStorageData, ICognitoStorage } from 'amazon-cognito-identity-js';
|
|
2
|
+
/**
|
|
3
|
+
* Parameters for user sign up
|
|
4
|
+
*/
|
|
5
|
+
export interface SignUpParams {
|
|
6
|
+
username: string;
|
|
7
|
+
password: string;
|
|
8
|
+
attributes?: object;
|
|
9
|
+
validationData?: {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
};
|
|
12
|
+
clientMetadata?: {
|
|
13
|
+
[key: string]: string;
|
|
14
|
+
};
|
|
15
|
+
autoSignIn?: AutoSignInOptions;
|
|
16
|
+
}
|
|
17
|
+
export interface AuthCache {
|
|
18
|
+
setItem(): any;
|
|
19
|
+
getItem(): any;
|
|
20
|
+
removeItem(): any;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Auth instance options
|
|
24
|
+
*/
|
|
25
|
+
export interface AuthOptions {
|
|
26
|
+
userPoolId?: string;
|
|
27
|
+
userPoolWebClientId?: string;
|
|
28
|
+
identityPoolId?: string;
|
|
29
|
+
region?: string;
|
|
30
|
+
mandatorySignIn?: boolean;
|
|
31
|
+
cookieStorage?: ICookieStorageData;
|
|
32
|
+
oauth?: OAuthOpts;
|
|
33
|
+
refreshHandlers?: object;
|
|
34
|
+
storage?: ICognitoStorage;
|
|
35
|
+
authenticationFlowType?: string;
|
|
36
|
+
identityPoolRegion?: string;
|
|
37
|
+
clientMetadata?: any;
|
|
38
|
+
endpoint?: string;
|
|
39
|
+
signUpVerificationMethod?: 'code' | 'link';
|
|
40
|
+
}
|
|
41
|
+
export declare enum CognitoHostedUIIdentityProvider {
|
|
42
|
+
Cognito = "COGNITO",
|
|
43
|
+
Google = "Google",
|
|
44
|
+
Facebook = "Facebook",
|
|
45
|
+
Amazon = "LoginWithAmazon",
|
|
46
|
+
Apple = "SignInWithApple"
|
|
47
|
+
}
|
|
48
|
+
export declare type LegacyProvider = 'google' | 'facebook' | 'amazon' | 'developer' | string;
|
|
49
|
+
export declare type FederatedSignInOptions = {
|
|
50
|
+
provider: CognitoHostedUIIdentityProvider;
|
|
51
|
+
customState?: string;
|
|
52
|
+
};
|
|
53
|
+
export declare type FederatedSignInOptionsCustom = {
|
|
54
|
+
customProvider: string;
|
|
55
|
+
customState?: string;
|
|
56
|
+
};
|
|
57
|
+
export declare function isFederatedSignInOptions(obj: any): obj is FederatedSignInOptions;
|
|
58
|
+
export declare function isFederatedSignInOptionsCustom(obj: any): obj is FederatedSignInOptionsCustom;
|
|
59
|
+
export declare function hasCustomState(obj: any): boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Details for multi-factor authentication
|
|
62
|
+
*/
|
|
63
|
+
export interface MfaRequiredDetails {
|
|
64
|
+
challengeName: any;
|
|
65
|
+
challengeParameters: any;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* interface for federatedResponse
|
|
69
|
+
*/
|
|
70
|
+
export interface FederatedResponse {
|
|
71
|
+
token: string;
|
|
72
|
+
identity_id?: string;
|
|
73
|
+
expires_at: number;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* interface for federatedUser
|
|
77
|
+
*/
|
|
78
|
+
export interface FederatedUser {
|
|
79
|
+
name: string;
|
|
80
|
+
email?: string;
|
|
81
|
+
picture?: string;
|
|
82
|
+
}
|
|
83
|
+
export interface AwsCognitoOAuthOpts {
|
|
84
|
+
domain: string;
|
|
85
|
+
scope: Array<string>;
|
|
86
|
+
redirectSignIn: string;
|
|
87
|
+
redirectSignOut: string;
|
|
88
|
+
responseType: string;
|
|
89
|
+
options?: object;
|
|
90
|
+
urlOpener?: (url: string, redirectUrl: string) => Promise<any>;
|
|
91
|
+
}
|
|
92
|
+
export declare function isCognitoHostedOpts(oauth: OAuthOpts): oauth is AwsCognitoOAuthOpts;
|
|
93
|
+
export interface Auth0OAuthOpts {
|
|
94
|
+
domain: string;
|
|
95
|
+
clientID: string;
|
|
96
|
+
scope: string;
|
|
97
|
+
redirectUri: string;
|
|
98
|
+
audience: string;
|
|
99
|
+
responseType: string;
|
|
100
|
+
returnTo: string;
|
|
101
|
+
urlOpener?: (url: string, redirectUrl: string) => Promise<any>;
|
|
102
|
+
}
|
|
103
|
+
export declare type OAuthOpts = AwsCognitoOAuthOpts | Auth0OAuthOpts;
|
|
104
|
+
export interface ConfirmSignUpOptions {
|
|
105
|
+
forceAliasCreation?: boolean;
|
|
106
|
+
clientMetadata?: ClientMetaData;
|
|
107
|
+
}
|
|
108
|
+
export interface SignOutOpts {
|
|
109
|
+
global?: boolean;
|
|
110
|
+
}
|
|
111
|
+
export interface CurrentUserOpts {
|
|
112
|
+
bypassCache: boolean;
|
|
113
|
+
}
|
|
114
|
+
export interface GetPreferredMFAOpts {
|
|
115
|
+
bypassCache: boolean;
|
|
116
|
+
}
|
|
117
|
+
export declare type UsernamePasswordOpts = {
|
|
118
|
+
username: string;
|
|
119
|
+
password: string;
|
|
120
|
+
validationData?: {
|
|
121
|
+
[key: string]: any;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
export declare enum AuthErrorTypes {
|
|
125
|
+
NoConfig = "noConfig",
|
|
126
|
+
MissingAuthConfig = "missingAuthConfig",
|
|
127
|
+
EmptyUsername = "emptyUsername",
|
|
128
|
+
InvalidUsername = "invalidUsername",
|
|
129
|
+
EmptyPassword = "emptyPassword",
|
|
130
|
+
EmptyCode = "emptyCode",
|
|
131
|
+
SignUpError = "signUpError",
|
|
132
|
+
NoMFA = "noMFA",
|
|
133
|
+
InvalidMFA = "invalidMFA",
|
|
134
|
+
EmptyChallengeResponse = "emptyChallengeResponse",
|
|
135
|
+
NoUserSession = "noUserSession",
|
|
136
|
+
Default = "default",
|
|
137
|
+
DeviceConfig = "deviceConfig",
|
|
138
|
+
NetworkError = "networkError",
|
|
139
|
+
AutoSignInError = "autoSignInError"
|
|
140
|
+
}
|
|
141
|
+
export declare type AuthErrorMessages = {
|
|
142
|
+
[key in AuthErrorTypes]: AuthErrorMessage;
|
|
143
|
+
};
|
|
144
|
+
export interface AuthErrorMessage {
|
|
145
|
+
message: string;
|
|
146
|
+
log?: string;
|
|
147
|
+
}
|
|
148
|
+
export declare type SignInOpts = UsernamePasswordOpts;
|
|
149
|
+
export declare type ClientMetaData = {
|
|
150
|
+
[key: string]: string;
|
|
151
|
+
} | undefined;
|
|
152
|
+
export declare function isUsernamePasswordOpts(obj: any): obj is UsernamePasswordOpts;
|
|
153
|
+
export interface IAuthDevice {
|
|
154
|
+
id: string;
|
|
155
|
+
name: string;
|
|
156
|
+
}
|
|
157
|
+
export interface AutoSignInOptions {
|
|
158
|
+
enabled: boolean;
|
|
159
|
+
clientMetaData?: ClientMetaData;
|
|
160
|
+
validationData?: {
|
|
161
|
+
[key: string]: any;
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
export declare enum GRAPHQL_AUTH_MODE {
|
|
165
|
+
API_KEY = "API_KEY",
|
|
166
|
+
AWS_IAM = "AWS_IAM",
|
|
167
|
+
OPENID_CONNECT = "OPENID_CONNECT",
|
|
168
|
+
AMAZON_COGNITO_USER_POOLS = "AMAZON_COGNITO_USER_POOLS",
|
|
169
|
+
AWS_LAMBDA = "AWS_LAMBDA"
|
|
170
|
+
}
|
package/lib/types/Auth.js
CHANGED
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
6
|
-
* the License. A copy of the License is located at
|
|
7
|
-
*
|
|
8
|
-
* http://aws.amazon.com/apache2.0/
|
|
9
|
-
*
|
|
10
|
-
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
11
|
-
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
|
|
12
|
-
* and limitations under the License.
|
|
13
|
-
*/
|
|
2
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
14
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
5
|
var CognitoHostedUIIdentityProvider;
|
|
16
6
|
(function (CognitoHostedUIIdentityProvider) {
|
package/lib/types/Auth.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Auth.js","sourceRoot":"","sources":["../../src/types/Auth.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":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IACrB,yDAAuC,CAAA;IACvC,iDAA+B,CAAA;IAC/B,qDAAmC,CAAA;IACnC,iDAA+B,CAAA;IAC/B,yCAAuB,CAAA;IACvB,6CAA2B,CAAA;IAC3B,iCAAe,CAAA;IACf,2CAAyB,CAAA;IACzB,mEAAiD,CAAA;IACjD,iDAA+B,CAAA;IAC/B,qCAAmB,CAAA;IACnB,+CAA6B,CAAA;IAC7B,+CAA6B,CAAA;IAC7B,qDAAmC,CAAA;AACpC,CAAC,EAhBW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAgBzB;AAkBD,SAAgB,sBAAsB,CAAC,GAAQ;IAC9C,OAAO,CAAC,CAAE,GAA4B,CAAC,QAAQ,CAAC;AACjD,CAAC;AAFD,wDAEC;AAaD,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC5B,wCAAmB,CAAA;IACnB,wCAAmB,CAAA;IACnB,sDAAiC,CAAA;IACjC,4EAAuD,CAAA;IACvD,8CAAyB,CAAA;AAC1B,CAAC,EANW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAM5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Auth';
|
package/lib/types/index.js
CHANGED
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
6
|
-
* the License. A copy of the License is located at
|
|
7
|
-
*
|
|
8
|
-
* http://aws.amazon.com/apache2.0/
|
|
9
|
-
*
|
|
10
|
-
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
11
|
-
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
|
|
12
|
-
* and limitations under the License.
|
|
13
|
-
*/
|
|
2
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
14
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
5
|
var tslib_1 = require("tslib");
|
|
16
6
|
tslib_1.__exportStar(require("./Auth"), exports);
|
package/lib/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;;AAEtC,iDAAuB"}
|
package/lib/urlListener.js
CHANGED
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*
|
|
6
|
-
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
7
|
-
* the License. A copy of the License is located at
|
|
8
|
-
*
|
|
9
|
-
* http://aws.amazon.com/apache2.0/
|
|
10
|
-
*
|
|
11
|
-
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
12
|
-
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
|
|
13
|
-
* and limitations under the License.
|
|
14
|
-
*/
|
|
3
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
15
5
|
var core_1 = require("@aws-amplify/core");
|
|
16
6
|
exports.default = (function (callback) {
|
|
17
7
|
if (core_1.browserOrNode().isBrowser && window.location) {
|
package/lib/urlListener.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"urlListener.js","sourceRoot":"","sources":["../src/urlListener.ts"],"names":[],"mappings":";;AAAA
|
|
1
|
+
{"version":3,"file":"urlListener.js","sourceRoot":"","sources":["../src/urlListener.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,0CAAkD;AAElD,mBAAe,UAAA,QAAQ;IACtB,IAAI,oBAAa,EAAE,CAAC,SAAS,IAAI,MAAM,CAAC,QAAQ,EAAE;QACjD,IAAM,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;QAEjC,QAAQ,CAAC,EAAE,GAAG,KAAA,EAAE,CAAC,CAAC;KAClB;SAAM,IAAI,oBAAa,EAAE,CAAC,MAAM,EAAE;QAClC,2BAA2B;QAC3B,CAAA,cAAO,CAAC,CAAA,CAAC,CAAC,OAAO;KACjB;SAAM;QACN,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;KACjC;AACF,CAAC,EAAC"}
|
|
@@ -1,18 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var tslib_1 = require("tslib");
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
*
|
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
8
|
-
* the License. A copy of the License is located at
|
|
9
|
-
*
|
|
10
|
-
* http://aws.amazon.com/apache2.0/
|
|
11
|
-
*
|
|
12
|
-
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
13
|
-
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
|
|
14
|
-
* and limitations under the License.
|
|
15
|
-
*/
|
|
4
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
5
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
16
6
|
var core_1 = require("@aws-amplify/core");
|
|
17
7
|
var logger = new core_1.ConsoleLogger('urlListener');
|
|
18
8
|
var handler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"urlListener.native.js","sourceRoot":"","sources":["../src/urlListener.native.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"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AAG,EAAE,UAAU,EAAE,CAAC,CAAC;;;;;aAE9B,CAAC,CAAC;;;KACH,EAAC"}
|
package/lib-esm/Auth.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export declare class AuthClass {
|
|
|
16
16
|
private oAuthFlowInProgress;
|
|
17
17
|
private pendingSignIn;
|
|
18
18
|
private autoSignInInitiated;
|
|
19
|
+
private inflightSessionPromise;
|
|
19
20
|
Credentials: import("@aws-amplify/core").CredentialsClass;
|
|
20
21
|
/**
|
|
21
22
|
* Initialize Auth with AWS configurations
|
|
@@ -199,6 +200,7 @@ export declare class AuthClass {
|
|
|
199
200
|
* @return - A promise resolves to session object if success
|
|
200
201
|
*/
|
|
201
202
|
currentSession(): Promise<CognitoUserSession>;
|
|
203
|
+
private _userSession;
|
|
202
204
|
/**
|
|
203
205
|
* Get the corresponding user session
|
|
204
206
|
* @param {Object} user - The CognitoUser object
|