Skip to content

Commit 2272eb1

Browse files
fix(auth): use new storage service
1 parent 218c577 commit 2272eb1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/auth/src/auth.service.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Injectable } from '@angular/core';
2-
import { Storage } from '@ionic/storage';
32
import {
43
AuthenticationDetails,
54
CognitoUser,
@@ -10,6 +9,8 @@ import {
109
ISignUpResult
1110
} from 'amazon-cognito-identity-js';
1211

12+
import { IDEAStorageService } from '@idea-ionic/common';
13+
1314
import { environment as env } from '@env';
1415

1516
/**
@@ -26,7 +27,7 @@ const DEVICE_KEY_ATTRIBUTE = 'custom:'.concat(env.idea.project);
2627
export class IDEAAuthService {
2728
protected userPool: CognitoUserPool;
2829

29-
constructor(protected storage: Storage) {
30+
constructor(protected storage: IDEAStorageService) {
3031
this.userPool = new CognitoUserPool({
3132
UserPoolId: env.aws.cognito.userPoolId,
3233
ClientId: env.aws.cognito.userPoolClientId

0 commit comments

Comments
 (0)