File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export default class CognitoUserPool {
30
30
* @param {object } data.Storage Optional storage object.
31
31
*/
32
32
constructor ( data ) {
33
- const { UserPoolId, ClientId } = data || { } ;
33
+ const { UserPoolId, ClientId, endpoint } = data || { } ;
34
34
if ( ! UserPoolId || ! ClientId ) {
35
35
throw new Error ( 'Both UserPoolId and ClientId are required.' ) ;
36
36
}
@@ -42,7 +42,7 @@ export default class CognitoUserPool {
42
42
this . userPoolId = UserPoolId ;
43
43
this . clientId = ClientId ;
44
44
45
- this . client = new CognitoIdentityServiceProvider ( { apiVersion : '2016-04-19' , region } ) ;
45
+ this . client = new CognitoIdentityServiceProvider ( { apiVersion : '2016-04-19' , region, endpoint } ) ;
46
46
47
47
this . storage = data . Storage || new StorageHelper ( ) . getStorage ( ) ;
48
48
}
You can’t perform that action at this time.
0 commit comments