@aws-amplify/auth 4.6.15-unstable.4 → 4.6.16
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/CHANGELOG.md +24 -0
- package/build.js +5 -0
- package/dist/aws-amplify-auth.js +14660 -0
- package/dist/aws-amplify-auth.js.map +1 -0
- package/dist/aws-amplify-auth.min.js +43 -0
- package/dist/aws-amplify-auth.min.js.map +1 -0
- package/index.js +7 -0
- package/lib/Auth.js +140 -65
- package/lib/Auth.js.map +1 -1
- package/lib/Errors.js +27 -5
- package/lib/Errors.js.map +1 -1
- package/lib/OAuth/OAuth.js +118 -36
- package/lib/OAuth/OAuth.js.map +1 -1
- package/lib/OAuth/oauthStorage.js +12 -2
- package/lib/OAuth/oauthStorage.js.map +1 -1
- package/lib/OAuth/oauthStorage.native.js +12 -2
- package/lib/OAuth/oauthStorage.native.js.map +1 -1
- package/lib/OAuth/urlOpener.js +12 -2
- package/lib/OAuth/urlOpener.js.map +1 -1
- package/lib/OAuth/urlOpener.native.js +12 -2
- package/lib/OAuth/urlOpener.native.js.map +1 -1
- package/lib/index.js +12 -2
- package/lib/index.js.map +1 -1
- package/lib/types/Auth.js +12 -2
- package/lib/types/Auth.js.map +1 -1
- package/lib/types/index.js +16 -4
- package/lib/types/index.js.map +1 -1
- package/lib/urlListener.js +12 -2
- package/lib/urlListener.js.map +1 -1
- package/lib/urlListener.native.js +76 -9
- package/lib/urlListener.native.js.map +1 -1
- package/lib-esm/Auth.js +77 -5
- package/lib-esm/Auth.js.map +1 -1
- package/lib-esm/Errors.js +25 -3
- package/lib-esm/Errors.js.map +1 -1
- package/lib-esm/OAuth/OAuth.js +85 -13
- package/lib-esm/OAuth/OAuth.js.map +1 -1
- package/lib-esm/OAuth/oauthStorage.js +12 -2
- package/lib-esm/OAuth/oauthStorage.js.map +1 -1
- package/lib-esm/OAuth/oauthStorage.native.js +12 -2
- package/lib-esm/OAuth/oauthStorage.native.js.map +1 -1
- package/lib-esm/OAuth/urlOpener.js +12 -2
- package/lib-esm/OAuth/urlOpener.js.map +1 -1
- package/lib-esm/OAuth/urlOpener.native.js +12 -2
- package/lib-esm/OAuth/urlOpener.native.js.map +1 -1
- package/lib-esm/index.js +12 -2
- package/lib-esm/index.js.map +1 -1
- package/lib-esm/types/Auth.js +12 -2
- package/lib-esm/types/Auth.js.map +1 -1
- package/lib-esm/types/index.js +12 -2
- package/lib-esm/types/index.js.map +1 -1
- package/lib-esm/urlListener.js +12 -2
- package/lib-esm/urlListener.js.map +1 -1
- package/lib-esm/urlListener.native.js +70 -3
- package/lib-esm/urlListener.native.js.map +1 -1
- package/package.json +11 -13
- package/src/Auth.ts +14 -4
- package/src/Errors.ts +12 -2
- package/src/OAuth/OAuth.ts +37 -27
- package/src/OAuth/oauthStorage.native.ts +12 -2
- package/src/OAuth/oauthStorage.ts +12 -2
- package/src/OAuth/urlOpener.native.ts +12 -2
- package/src/OAuth/urlOpener.ts +12 -2
- package/src/index.ts +12 -2
- package/src/types/Auth.ts +12 -2
- package/src/types/index.ts +12 -2
- package/src/urlListener.native.ts +12 -2
- package/src/urlListener.ts +12 -2
- package/testSequencer.js +24 -0
- package/webpack.config.dev.js +6 -0
- package/lib/.tsbuildinfo +0 -3
- package/lib/Auth.d.ts +0 -301
- package/lib/Errors.d.ts +0 -9
- package/lib/OAuth/OAuth.d.ts +0 -29
- package/lib/OAuth/oauthStorage.d.ts +0 -5
- package/lib/OAuth/oauthStorage.native.d.ts +0 -5
- package/lib/OAuth/urlOpener.d.ts +0 -1
- package/lib/OAuth/urlOpener.native.d.ts +0 -1
- package/lib/common/AuthErrorStrings.d.ts +0 -17
- package/lib/index.d.ts +0 -9
- package/lib/types/Auth.d.ts +0 -170
- package/lib/types/index.d.ts +0 -1
- package/lib/urlListener.d.ts +0 -2
- package/lib/urlListener.native.d.ts +0 -2
- package/lib-esm/.tsbuildinfo +0 -3
package/lib/OAuth/OAuth.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OAuth.js","sourceRoot":"","sources":["../../src/OAuth/OAuth.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"OAuth.js","sourceRoot":"","sources":["../../src/OAuth/OAuth.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,2BAA4B,CAAC,8CAA8C;AAC3E,yCAAwC;AACxC,2DAA+C;AAE/C,sCAIuB;AAEvB,0CAAgF;AAEhF,4DAAsC;AACtC,oEAA0C;AAE1C,IAAM,cAAc,GAAG,CAAC,OAAO,MAAM,KAAK,WAAW;IACrD,OAAO,MAAM,CAAC,GAAG,KAAK,UAAU;IAC/B,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,iBAAiB,CAAC;IAC/B,CAAC,CAAC,mBAAmB,CAAW,CAAC;AAElC,IAAM,iBAAiB,GAAG,UAAC,KAAa,EAAE,IAAS,EAAE,OAAe;IACnE,UAAG,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAE,KAAK,OAAA,EAAE,IAAI,MAAA,EAAE,OAAO,SAAA,EAAE,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC;AACxE,CAAC,CAAC;AAEF,IAAM,MAAM,GAAG,IAAI,oBAAM,CAAC,OAAO,CAAC,CAAC;AAEnC;IAMC,eAAY,EAQX;YAPA,kBAAM,EACN,oCAAe,EACf,cAAW,EAAX,gCAAW;QAMX,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,SAAS,IAAI,qBAAS,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;QAExC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC;YAC9B,MAAM,KAAK,CAAC,+BAA+B,CAAC,CAAC;QAC9C,IAAI,CAAC,O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,MAAM,GAAG,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC;QACpC,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE;YACrD,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;SACtC;aAAM;YACN,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE;gBACjC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;aACjD;SACD;QACD,OAAO,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;IAEO,+BAAe,GAAvB,UAAwB,MAAkB;QACzC,IAAM,OAAO,GACZ,gEAAgE,CAAC;QAClE,IAAM,KAAK,GAAG,EAAE,CAAC;QACjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC,IAAI,CAAC,EAAE;YAC9C,IAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;YACzC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;SAC3B;QACD,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACvB,CAAC;IACF,YAAC;AAAD,CAAC,AA/SD,IA+SC"}
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
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
|
+
*/
|
|
4
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
15
|
exports.setState = function (state) {
|
|
6
16
|
window.sessionStorage.setItem('oauth_state', state);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauthStorage.js","sourceRoot":"","sources":["../../src/OAuth/oauthStorage.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"oauthStorage.js","sourceRoot":"","sources":["../../src/OAuth/oauthStorage.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;AAEU,QAAA,QAAQ,GAAG,UAAC,KAAa;IACrC,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC,CAAC;AAEW,QAAA,QAAQ,GAAG;IACvB,IAAM,WAAW,GAAG,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAC,cAAc,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IAChD,OAAO,WAAW,CAAC;AACpB,CAAC,CAAC;AAEW,QAAA,OAAO,GAAG,UAAC,WAAmB;IAC1C,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,gBAAgB,EAAE,WAAW,CAAC,CAAC;AAC9D,CAAC,CAAC;AAEW,QAAA,OAAO,GAAG;IACtB,IAAM,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACvE,MAAM,CAAC,cAAc,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;IACnD,OAAO,cAAc,CAAC;AACvB,CAAC,CAAC;AAEW,QAAA,QAAQ,GAAG;IACvB,MAAM,CAAC,cAAc,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;IACnD,MAAM,CAAC,cAAc,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AACjD,CAAC,CAAC"}
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
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
|
+
*/
|
|
4
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
15
|
var obj = {};
|
|
6
16
|
exports.setState = function (state) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauthStorage.native.js","sourceRoot":"","sources":["../../src/OAuth/oauthStorage.native.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"oauthStorage.native.js","sourceRoot":"","sources":["../../src/OAuth/oauthStorage.native.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;AAEH,IAAM,GAAG,GAGL,EAAE,CAAC;AAEM,QAAA,QAAQ,GAAG,UAAC,KAAa;IACrC,GAAG,CAAC,WAAW,GAAG,KAAK,CAAC;AACzB,CAAC,CAAC;AAEW,QAAA,QAAQ,GAAG;IACvB,IAAM,WAAW,GAAG,GAAG,CAAC,WAAW,CAAC;IACpC,GAAG,CAAC,WAAW,GAAG,SAAS,CAAC;IAC5B,OAAO,WAAW,CAAC;AACpB,CAAC,CAAC;AAEW,QAAA,OAAO,GAAG,UAAC,WAAmB;IAC1C,GAAG,CAAC,cAAc,GAAG,WAAW,CAAC;AAClC,CAAC,CAAC;AAEW,QAAA,OAAO,GAAG;IACtB,IAAM,cAAc,GAAG,GAAG,CAAC,cAAc,CAAC;IAC1C,GAAG,CAAC,cAAc,GAAG,SAAS,CAAC;IAC/B,OAAO,cAAc,CAAC;AACvB,CAAC,CAAC;AAEW,QAAA,QAAQ,GAAG;IACvB,GAAG,CAAC,cAAc,GAAG,SAAS,CAAC;IAC/B,GAAG,CAAC,WAAW,GAAG,SAAS,CAAC;AAC7B,CAAC,CAAC"}
|
package/lib/OAuth/urlOpener.js
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
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
|
+
*/
|
|
4
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
15
|
var SELF = '_self';
|
|
6
16
|
exports.launchUri = function (url) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"urlOpener.js","sourceRoot":"","sources":["../../src/OAuth/urlOpener.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"urlOpener.js","sourceRoot":"","sources":["../../src/OAuth/urlOpener.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;AAEH,IAAM,IAAI,GAAG,OAAO,CAAC;AAER,QAAA,SAAS,GAAG,UAAC,GAAW;IACpC,IAAM,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IAC3C,IAAI,WAAW,EAAE;QAChB,OAAO,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;KACpC;SAAM;QACN,OAAO,OAAO,CAAC,MAAM,EAAE,CAAC;KACxB;AACF,CAAC,CAAC"}
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
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
|
+
*/
|
|
4
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
15
|
var react_native_1 = require("react-native");
|
|
6
16
|
exports.launchUri = function (url) { return react_native_1.Linking.openURL(url); };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"urlOpener.native.js","sourceRoot":"","sources":["../../src/OAuth/urlOpener.native.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"urlOpener.native.js","sourceRoot":"","sources":["../../src/OAuth/urlOpener.native.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;AAEH,6CAAuC;AAE1B,QAAA,SAAS,GAAG,UAAA,GAAG,IAAI,OAAA,sBAAO,CAAC,OAAO,CAAC,GAAG,CAAC,EAApB,CAAoB,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
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
|
+
*/
|
|
4
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
15
|
var Auth_1 = require("./Auth");
|
|
6
16
|
exports.Auth = Auth_1.Auth;
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;AAEH,+BAA8B;AAkB7B,eAlBQ,WAAI,CAkBR;AAjBL,qCAIsB;AAgBrB,0CAnBA,sCAA+B,CAmBA;AAI/B,4BArBA,wBAAiB,CAqBA;AAnBlB,yEAIoC;AASnC,sBAZA,wCAAW,CAYA;AACX,wBAZA,0CAAa,CAYA;AAGb,mCAdA,qDAAwB,CAcA;AAZzB,8DAA6D;AAa5D,2BAbQ,mCAAgB,CAaR;AAXjB;;GAEG;AACH,kBAAe,WAAI,CAAC"}
|
package/lib/types/Auth.js
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
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
|
+
*/
|
|
4
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
15
|
var CognitoHostedUIIdentityProvider;
|
|
6
16
|
(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":3,"file":"Auth.js","sourceRoot":"","sources":["../../src/types/Auth.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;AA6CH,IAAY,+BAMX;AAND,WAAY,+BAA+B;IAC1C,sDAAmB,CAAA;IACnB,oDAAiB,CAAA;IACjB,wDAAqB,CAAA;IACrB,6DAA0B,CAAA;IAC1B,4DAAyB,CAAA;AAC1B,CAAC,EANW,+BAA+B,GAA/B,uCAA+B,KAA/B,uCAA+B,QAM1C;AAmBD,SAAgB,wBAAwB,CACvC,GAAQ;IAER,IAAM,IAAI,GAAqC,CAAC,UAAU,CAAC,CAAC;IAC5D,OAAO,GAAG,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,UAAA,CAAC,IAAI,OAAA,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC,EAArB,CAAqB,CAAC,CAAC;AACvD,CAAC;AALD,4DAKC;AAED,SAAgB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ACjC,4EAAuD,CAAA;IACvD,8CAAyB,CAAA;AAC1B,CAAC,EANW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAM5B"}
|
package/lib/types/index.js
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
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
|
+
*/
|
|
14
|
+
function __export(m) {
|
|
15
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
16
|
+
}
|
|
4
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
|
|
6
|
-
tslib_1.__exportStar(require("./Auth"), exports);
|
|
18
|
+
__export(require("./Auth"));
|
|
7
19
|
//# sourceMappingURL=index.js.map
|
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;;;;;;;;;;;GAWG;;;;;AAEH,4BAAuB"}
|
package/lib/urlListener.js
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/*
|
|
4
|
+
* Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
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
|
+
*/
|
|
5
15
|
var core_1 = require("@aws-amplify/core");
|
|
6
16
|
exports.default = (function (callback) {
|
|
7
17
|
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;;;;;;;;;;;GAWG;AACH,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,16 +1,83 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
+
function step(op) {
|
|
27
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
+
while (_) try {
|
|
29
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
+
switch (op[0]) {
|
|
32
|
+
case 0: case 1: t = op; break;
|
|
33
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
+
default:
|
|
37
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
+
if (t[2]) _.ops.pop();
|
|
42
|
+
_.trys.pop(); continue;
|
|
43
|
+
}
|
|
44
|
+
op = body.call(thisArg, _);
|
|
45
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
50
|
+
var t = {};
|
|
51
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
52
|
+
t[p] = s[p];
|
|
53
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
54
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
55
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
56
|
+
t[p[i]] = s[p[i]];
|
|
57
|
+
}
|
|
58
|
+
return t;
|
|
59
|
+
};
|
|
2
60
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
61
|
+
/*
|
|
62
|
+
* Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
63
|
+
*
|
|
64
|
+
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
65
|
+
* the License. A copy of the License is located at
|
|
66
|
+
*
|
|
67
|
+
* http://aws.amazon.com/apache2.0/
|
|
68
|
+
*
|
|
69
|
+
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
70
|
+
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
|
|
71
|
+
* and limitations under the License.
|
|
72
|
+
*/
|
|
6
73
|
var core_1 = require("@aws-amplify/core");
|
|
7
74
|
var logger = new core_1.ConsoleLogger('urlListener');
|
|
8
75
|
var handler;
|
|
9
|
-
exports.default = (function (callback) { return
|
|
76
|
+
exports.default = (function (callback) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10
77
|
var Linking, AppState, subscription;
|
|
11
78
|
var _a;
|
|
12
79
|
var _b;
|
|
13
|
-
return
|
|
80
|
+
return __generator(this, function (_c) {
|
|
14
81
|
if (handler) {
|
|
15
82
|
return [2 /*return*/];
|
|
16
83
|
}
|
|
@@ -23,8 +90,8 @@ exports.default = (function (callback) { return tslib_1.__awaiter(void 0, void 0
|
|
|
23
90
|
handler =
|
|
24
91
|
handler ||
|
|
25
92
|
(function (_a) {
|
|
26
|
-
var url = _a.url, rest =
|
|
27
|
-
logger.debug('urlListener',
|
|
93
|
+
var url = _a.url, rest = __rest(_a, ["url"]);
|
|
94
|
+
logger.debug('urlListener', __assign({ url: url }, rest));
|
|
28
95
|
callback({ url: url });
|
|
29
96
|
});
|
|
30
97
|
// Handles backward compatibility. removeEventListener is only available on RN versions before 0.65.
|
|
@@ -37,9 +104,9 @@ exports.default = (function (callback) { return tslib_1.__awaiter(void 0, void 0
|
|
|
37
104
|
(_b = subscription === null || subscription === void 0 ? void 0 : subscription.remove) === null || _b === void 0 ? void 0 : _b.call(subscription);
|
|
38
105
|
subscription = Linking.addEventListener('url', handler);
|
|
39
106
|
}
|
|
40
|
-
AppState.addEventListener('change', function (newAppState) { return
|
|
107
|
+
AppState.addEventListener('change', function (newAppState) { return __awaiter(void 0, void 0, void 0, function () {
|
|
41
108
|
var initialUrl;
|
|
42
|
-
return
|
|
109
|
+
return __generator(this, function (_a) {
|
|
43
110
|
switch (_a.label) {
|
|
44
111
|
case 0:
|
|
45
112
|
if (!(newAppState === 'active')) return [3 /*break*/, 2];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"urlListener.native.js","sourceRoot":"","sources":["../src/urlListener.native.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"urlListener.native.js","sourceRoot":"","sources":["../src/urlListener.native.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;GAWG;AACH,0CAA4D;AAC5D,IAAM,MAAM,GAAG,IAAI,oBAAM,CAAC,aAAa,CAAC,CAAC;AAEzC,IAAI,OAAO,CAAC;AAEZ,mBAAe,UAAM,QAAQ;;;;;QAC5B,IAAI,OAAO,EAAE;YACZ,sBAAO;SACP;QAKD,IAAI;YACH,CAAC,4BAA+C,EAA7C,oBAAO,EAAE,sBAAQ,CAA6B,CAAC;SAClD;QAAC,OAAO,KAAK,EAAE;YACf,wBAAwB;SACxB;QAED,OAAO;YACN,OAAO;gBACP,CAAC,UAAC,EAAiC;oBAA/B,IAAA,YAAG,EAAE,0BAAO;oBACf,MAAM,CAAC,KAAK,CAAC,aAAa,aAAI,GAAG,KAAA,IAAK,IAAI,EAAG,CAAC;oBAC9C,QAAQ,CAAC,EAAE,GAAG,KAAA,EAAE,CAAC,CAAC;gBACnB,CAAC,CAAC,CAAC;QAEJ,oGAAoG;QACpG,IAAI,OAAO,CAAC,mBAAmB,KAAK,OAAO,UAAU,EAAE;YACtD,OAAO,CAAC,mBAAmB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;YAC5C,OAAO,CAAC,gBAAgB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;SACzC;aAAM;YACN,kDAAkD;YAClD,MAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,MAAM,+CAApB,YAAY,EAAa;YACzB,YAAY,GAAG,OAAO,CAAC,gBAAgB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;SACxD;QACD,QAAQ,CAAC,gBAAgB,CAAC,QAAQ,EAAE,UAAM,WAAW;;;;;6BAChD,CAAA,WAAW,KAAK,QAAQ,CAAA,EAAxB,wBAAwB;wBACR,qBAAM,OAAO,CAAC,aAAa,EAAE,EAAA;;wBAA1C,UAAU,GAAG,SAA6B;wBAChD,OAAO,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,CAAC,CAAC;;;;;aAE9B,CAAC,CAAC;;;KACH,EAAC"}
|
package/lib-esm/Auth.js
CHANGED
|
@@ -1,8 +1,80 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
|
+
* the License. A copy of the License is located at
|
|
6
|
+
*
|
|
7
|
+
* http://aws.amazon.com/apache2.0/
|
|
8
|
+
*
|
|
9
|
+
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
10
|
+
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
|
|
11
|
+
* and limitations under the License.
|
|
12
|
+
*/
|
|
13
|
+
var __assign = (this && this.__assign) || function () {
|
|
14
|
+
__assign = Object.assign || function(t) {
|
|
15
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
16
|
+
s = arguments[i];
|
|
17
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
18
|
+
t[p] = s[p];
|
|
19
|
+
}
|
|
20
|
+
return t;
|
|
21
|
+
};
|
|
22
|
+
return __assign.apply(this, arguments);
|
|
23
|
+
};
|
|
24
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
25
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
26
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
27
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
28
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
29
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
30
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
34
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
35
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
36
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
37
|
+
function step(op) {
|
|
38
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
39
|
+
while (_) try {
|
|
40
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
41
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
42
|
+
switch (op[0]) {
|
|
43
|
+
case 0: case 1: t = op; break;
|
|
44
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
45
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
46
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
47
|
+
default:
|
|
48
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
49
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
50
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
51
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
52
|
+
if (t[2]) _.ops.pop();
|
|
53
|
+
_.trys.pop(); continue;
|
|
54
|
+
}
|
|
55
|
+
op = body.call(thisArg, _);
|
|
56
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
57
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
61
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
62
|
+
if (!m) return o;
|
|
63
|
+
var i = m.call(o), r, ar = [], e;
|
|
64
|
+
try {
|
|
65
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
66
|
+
}
|
|
67
|
+
catch (error) { e = { error: error }; }
|
|
68
|
+
finally {
|
|
69
|
+
try {
|
|
70
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
71
|
+
}
|
|
72
|
+
finally { if (e) throw e.error; }
|
|
73
|
+
}
|
|
74
|
+
return ar;
|
|
75
|
+
};
|
|
4
76
|
import { isUsernamePasswordOpts, isCognitoHostedOpts, isFederatedSignInOptions, isFederatedSignInOptionsCustom, hasCustomState, } from './types';
|
|
5
|
-
import { Amplify, ConsoleLogger as Logger, Credentials, Hub, StorageHelper,
|
|
77
|
+
import { Amplify, ConsoleLogger as Logger, Credentials, Hub, StorageHelper, Parser, browserOrNode, UniversalStorage, urlSafeDecode, } from '@aws-amplify/core';
|
|
6
78
|
import { CookieStorage, CognitoUserPool, AuthenticationDetails, CognitoUser, CognitoUserSession, CognitoUserAttribute, CognitoIdToken, CognitoRefreshToken, CognitoAccessToken, } from 'amazon-cognito-identity-js';
|
|
7
79
|
import { parse } from 'url';
|
|
8
80
|
import OAuth from './OAuth/OAuth';
|
|
@@ -78,7 +150,7 @@ var AuthClass = /** @class */ (function () {
|
|
|
78
150
|
if (!config)
|
|
79
151
|
return this._config || {};
|
|
80
152
|
logger.debug('configure Auth');
|
|
81
|
-
var conf = Object.assign({}, this._config,
|
|
153
|
+
var conf = Object.assign({}, this._config, Parser.parseMobilehubConfig(config).Auth, config);
|
|
82
154
|
this._config = conf;
|
|
83
155
|
var _a = this._config, userPoolId = _a.userPoolId, userPoolWebClientId = _a.userPoolWebClientId, cookieStorage = _a.cookieStorage, oauth = _a.oauth, region = _a.region, identityPoolId = _a.identityPoolId, mandatorySignIn = _a.mandatorySignIn, refreshHandlers = _a.refreshHandlers, identityPoolRegion = _a.identityPoolRegion, clientMetadata = _a.clientMetadata, endpoint = _a.endpoint;
|
|
84
156
|
if (!this._config.storage) {
|