We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 218c577 commit 2272eb1Copy full SHA for 2272eb1
modules/auth/src/auth.service.ts
@@ -1,5 +1,4 @@
1
import { Injectable } from '@angular/core';
2
-import { Storage } from '@ionic/storage';
3
import {
4
AuthenticationDetails,
5
CognitoUser,
@@ -10,6 +9,8 @@ import {
10
9
ISignUpResult
11
} from 'amazon-cognito-identity-js';
12
+import { IDEAStorageService } from '@idea-ionic/common';
13
+
14
import { environment as env } from '@env';
15
16
/**
@@ -26,7 +27,7 @@ const DEVICE_KEY_ATTRIBUTE = 'custom:'.concat(env.idea.project);
26
27
export class IDEAAuthService {
28
protected userPool: CognitoUserPool;
29
- constructor(protected storage: Storage) {
30
+ constructor(protected storage: IDEAStorageService) {
31
this.userPool = new CognitoUserPool({
32
UserPoolId: env.aws.cognito.userPoolId,
33
ClientId: env.aws.cognito.userPoolClientId
0 commit comments