@daffodil/auth 0.62.1 → 0.62.2
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/driver/constants/unauthenticated-error-codes.d.ts +0 -1
- package/driver/in-memory/package.json +1 -1
- package/driver/magento/package.json +1 -1
- package/driver/package.json +1 -1
- package/driver/testing/package.json +1 -1
- package/esm2020/driver/constants/unauthenticated-error-codes.mjs +1 -3
- package/fesm2015/daffodil-auth-driver.mjs +1 -2
- package/fesm2015/daffodil-auth-driver.mjs.map +1 -1
- package/fesm2020/daffodil-auth-driver.mjs +1 -2
- package/fesm2020/daffodil-auth-driver.mjs.map +1 -1
- package/package.json +1 -1
- package/routing/package.json +1 -1
- package/state/package.json +1 -1
- package/state/testing/package.json +1 -1
- package/testing/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@daffodil/auth/driver/in-memory","module":"../../fesm2015/daffodil-auth-driver-in-memory.mjs","es2020":"../../fesm2020/daffodil-auth-driver-in-memory.mjs","esm2020":"../../esm2020/driver/in-memory/daffodil-auth-driver-in-memory.mjs","fesm2020":"../../fesm2020/daffodil-auth-driver-in-memory.mjs","fesm2015":"../../fesm2015/daffodil-auth-driver-in-memory.mjs","typings":"daffodil-auth-driver-in-memory.d.ts","sideEffects":false,"version":"0.62.
|
|
1
|
+
{"name":"@daffodil/auth/driver/in-memory","module":"../../fesm2015/daffodil-auth-driver-in-memory.mjs","es2020":"../../fesm2020/daffodil-auth-driver-in-memory.mjs","esm2020":"../../esm2020/driver/in-memory/daffodil-auth-driver-in-memory.mjs","fesm2020":"../../fesm2020/daffodil-auth-driver-in-memory.mjs","fesm2015":"../../fesm2015/daffodil-auth-driver-in-memory.mjs","typings":"daffodil-auth-driver-in-memory.d.ts","sideEffects":false,"version":"0.62.2"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@daffodil/auth/driver/magento","module":"../../fesm2015/daffodil-auth-driver-magento.mjs","es2020":"../../fesm2020/daffodil-auth-driver-magento.mjs","esm2020":"../../esm2020/driver/magento/daffodil-auth-driver-magento.mjs","fesm2020":"../../fesm2020/daffodil-auth-driver-magento.mjs","fesm2015":"../../fesm2015/daffodil-auth-driver-magento.mjs","typings":"daffodil-auth-driver-magento.d.ts","sideEffects":false,"version":"0.62.
|
|
1
|
+
{"name":"@daffodil/auth/driver/magento","module":"../../fesm2015/daffodil-auth-driver-magento.mjs","es2020":"../../fesm2020/daffodil-auth-driver-magento.mjs","esm2020":"../../esm2020/driver/magento/daffodil-auth-driver-magento.mjs","fesm2020":"../../fesm2020/daffodil-auth-driver-magento.mjs","fesm2015":"../../fesm2015/daffodil-auth-driver-magento.mjs","typings":"daffodil-auth-driver-magento.d.ts","sideEffects":false,"version":"0.62.2"}
|
package/driver/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@daffodil/auth/driver","module":"../fesm2015/daffodil-auth-driver.mjs","es2020":"../fesm2020/daffodil-auth-driver.mjs","esm2020":"../esm2020/driver/daffodil-auth-driver.mjs","fesm2020":"../fesm2020/daffodil-auth-driver.mjs","fesm2015":"../fesm2015/daffodil-auth-driver.mjs","typings":"daffodil-auth-driver.d.ts","sideEffects":false,"version":"0.62.
|
|
1
|
+
{"name":"@daffodil/auth/driver","module":"../fesm2015/daffodil-auth-driver.mjs","es2020":"../fesm2020/daffodil-auth-driver.mjs","esm2020":"../esm2020/driver/daffodil-auth-driver.mjs","fesm2020":"../fesm2020/daffodil-auth-driver.mjs","fesm2015":"../fesm2015/daffodil-auth-driver.mjs","typings":"daffodil-auth-driver.d.ts","sideEffects":false,"version":"0.62.2"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@daffodil/auth/driver/testing","module":"../../fesm2015/daffodil-auth-driver-testing.mjs","es2020":"../../fesm2020/daffodil-auth-driver-testing.mjs","esm2020":"../../esm2020/driver/testing/daffodil-auth-driver-testing.mjs","fesm2020":"../../fesm2020/daffodil-auth-driver-testing.mjs","fesm2015":"../../fesm2015/daffodil-auth-driver-testing.mjs","typings":"daffodil-auth-driver-testing.d.ts","sideEffects":false,"version":"0.62.
|
|
1
|
+
{"name":"@daffodil/auth/driver/testing","module":"../../fesm2015/daffodil-auth-driver-testing.mjs","es2020":"../../fesm2020/daffodil-auth-driver-testing.mjs","esm2020":"../../esm2020/driver/testing/daffodil-auth-driver-testing.mjs","fesm2020":"../../fesm2020/daffodil-auth-driver-testing.mjs","fesm2015":"../../fesm2015/daffodil-auth-driver-testing.mjs","typings":"daffodil-auth-driver-testing.d.ts","sideEffects":false,"version":"0.62.2"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { DaffAuthErrorCodes } from '@daffodil/auth';
|
|
2
1
|
import { DaffAuthDriverErrorCodes } from '../errors/public_api';
|
|
3
2
|
/**
|
|
4
3
|
* The error codes that indicate that the user definitely should not be in an unauthenticated state
|
|
@@ -9,6 +8,5 @@ import { DaffAuthDriverErrorCodes } from '../errors/public_api';
|
|
|
9
8
|
export const DAFF_AUTH_UNAUTHENTICATED_ERROR_CODES = {
|
|
10
9
|
[DaffAuthDriverErrorCodes.UNAUTHORIZED]: true,
|
|
11
10
|
[DaffAuthDriverErrorCodes.AUTHENTICATION_FAILED]: true,
|
|
12
|
-
[DaffAuthErrorCodes.MISSING_TOKEN]: true,
|
|
13
11
|
};
|
|
14
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
12
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidW5hdXRoZW50aWNhdGVkLWVycm9yLWNvZGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicy9hdXRoL2RyaXZlci9zcmMvY29uc3RhbnRzL3VuYXV0aGVudGljYXRlZC1lcnJvci1jb2Rlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUVoRTs7Ozs7R0FLRztBQUNILE1BQU0sQ0FBQyxNQUFNLHFDQUFxQyxHQUFHO0lBQ25ELENBQUMsd0JBQXdCLENBQUMsWUFBWSxDQUFDLEVBQUUsSUFBSTtJQUM3QyxDQUFDLHdCQUF3QixDQUFDLHFCQUFxQixDQUFDLEVBQUUsSUFBSTtDQUN2RCxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRGFmZkF1dGhEcml2ZXJFcnJvckNvZGVzIH0gZnJvbSAnLi4vZXJyb3JzL3B1YmxpY19hcGknO1xuXG4vKipcbiAqIFRoZSBlcnJvciBjb2RlcyB0aGF0IGluZGljYXRlIHRoYXQgdGhlIHVzZXIgZGVmaW5pdGVseSBzaG91bGQgbm90IGJlIGluIGFuIHVuYXV0aGVudGljYXRlZCBzdGF0ZVxuICogYW5kIGlmIGFuIGF1dGggdG9rZW4gZXhpc3RzIGluIHN0b3JhZ2UsIGl0IGlzIGludmFsaWQuXG4gKiBUaGVzZSBhcmUgY29udHJhc3RlZCB0byBuZXR3b3JrIGZhaWx1cmVzIGFuZCBvdGhlciBzcG9yYWRpYyBhbmQgZ2VuZXJpYyBlcnJvcnMgdGhhdCBhcmVuJ3RcbiAqIGEgZ3VhcmFudGVlIG9mIHRoZSB0b2tlbidzIGludmFsaWRpdHkuXG4gKi9cbmV4cG9ydCBjb25zdCBEQUZGX0FVVEhfVU5BVVRIRU5USUNBVEVEX0VSUk9SX0NPREVTID0ge1xuICBbRGFmZkF1dGhEcml2ZXJFcnJvckNvZGVzLlVOQVVUSE9SSVpFRF06IHRydWUsXG4gIFtEYWZmQXV0aERyaXZlckVycm9yQ29kZXMuQVVUSEVOVElDQVRJT05fRkFJTEVEXTogdHJ1ZSxcbn07XG4iXX0=
|
|
@@ -3,7 +3,7 @@ import { InjectionToken, Injectable, Inject } from '@angular/core';
|
|
|
3
3
|
import { DaffInheritableError } from '@daffodil/core';
|
|
4
4
|
import { of, switchMap, throwError } from 'rxjs';
|
|
5
5
|
import * as i1 from '@daffodil/auth';
|
|
6
|
-
import { DaffAuthMissingTokenError
|
|
6
|
+
import { DaffAuthMissingTokenError } from '@daffodil/auth';
|
|
7
7
|
|
|
8
8
|
const DaffAuthDriver = new InjectionToken('DaffAuthDriver');
|
|
9
9
|
|
|
@@ -109,7 +109,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImpor
|
|
|
109
109
|
const DAFF_AUTH_UNAUTHENTICATED_ERROR_CODES = {
|
|
110
110
|
[DaffAuthDriverErrorCodes.UNAUTHORIZED]: true,
|
|
111
111
|
[DaffAuthDriverErrorCodes.AUTHENTICATION_FAILED]: true,
|
|
112
|
-
[DaffAuthErrorCodes.MISSING_TOKEN]: true,
|
|
113
112
|
};
|
|
114
113
|
|
|
115
114
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daffodil-auth-driver.mjs","sources":["../../../libs/auth/driver/src/interfaces/auth-service.interface.ts","../../../libs/auth/driver/src/interfaces/login-service.interface.ts","../../../libs/auth/driver/src/interfaces/register-service.interface.ts","../../../libs/auth/driver/src/interfaces/reset-password-service.interface.ts","../../../libs/auth/driver/src/errors/codes.enum.ts","../../../libs/auth/driver/src/errors/unauthorized.ts","../../../libs/auth/driver/src/errors/authentication-failed.ts","../../../libs/auth/driver/src/errors/registration-failed.ts","../../../libs/auth/driver/src/errors/invalid-api-response.ts","../../../libs/auth/driver/src/errors/map.ts","../../../libs/auth/driver/src/services/auth-check.service.ts","../../../libs/auth/driver/src/constants/unauthenticated-error-codes.ts","../../../libs/auth/driver/src/daffodil-auth-driver.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { Observable } from 'rxjs';\n\nexport interface DaffAuthServiceInterface {\n /**\n * Checks the validity of an auth token.\n */\n check(): Observable<void>;\n}\n\nexport const DaffAuthDriver = new InjectionToken<DaffAuthServiceInterface>('DaffAuthDriver');\n","import { InjectionToken } from '@angular/core';\nimport { Observable } from 'rxjs';\n\nimport {\n DaffLoginInfo,\n DaffAuthToken,\n} from '@daffodil/auth';\n\nexport interface DaffLoginServiceInterface<\n TRequest extends DaffLoginInfo = DaffLoginInfo,\n TResponse extends DaffAuthToken = DaffAuthToken\n> {\n /**\n * Logs the user in.\n *\n * @returns An access token.\n */\n login(loginInfo: TRequest): Observable<TResponse>;\n\n /**\n * Logs the user out by revoking their access token.\n */\n logout(): Observable<void>;\n}\n\nexport const DaffLoginDriver = new InjectionToken<DaffLoginServiceInterface>('DaffLoginDriver');\n","import { InjectionToken } from '@angular/core';\nimport { Observable } from 'rxjs';\n\nimport { DaffAccountRegistration } from '@daffodil/auth';\n\nexport interface DaffRegisterServiceInterface<\n TRequest extends DaffAccountRegistration = DaffAccountRegistration,\n> {\n\n /**\n * Registers an account for the specified customer and logs the customer in.\n *\n * @param registration The account registration info.\n * @return The authentication token.\n */\n register(registration: TRequest): Observable<string>;\n\n /**\n * Registers an account for the specified customer but does not log the customer in.\n *\n * @param registration The account registration info.\n */\n registerOnly(registration: TRequest): Observable<void>;\n}\n\nexport const DaffRegisterDriver = new InjectionToken<DaffRegisterServiceInterface>('DaffRegisterDriver');\n","import { InjectionToken } from '@angular/core';\nimport { Observable } from 'rxjs';\n\nimport { DaffAuthResetPasswordInfo } from '@daffodil/auth';\n\nexport interface DaffResetPasswordServiceInterface<\n T extends DaffAuthResetPasswordInfo = DaffAuthResetPasswordInfo,\n> {\n\n /**\n * Resets password for the specified customer and logs in.\n */\n resetPassword(info: T): Observable<string>;\n\n /**\n * Resets password for the specified customer.\n */\n resetPasswordOnly(info: T): Observable<void>;\n\n /**\n * Send a password reset email to the specified email address.\n */\n sendResetEmail(email: string): Observable<void>;\n}\n\nexport const DaffResetPasswordDriver = new InjectionToken<DaffResetPasswordServiceInterface>('DaffResetPasswordDriver');\n","export enum DaffAuthDriverErrorCodes {\n AUTHENTICATION_FAILED = 'DAFF_AUTH_AUTHENTICATION_FAILED',\n INVALID_API_RESPONSE = 'DAFF_AUTH_INVALID_API_RESPONSE',\n REGISTRATION_FAILED = 'DAFF_AUTH_REGISTRATION_FAILED',\n UNAUTHORIZED = 'DAFF_AUTH_UNAUTHORIZED',\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthDriverErrorCodes } from './codes.enum';\n\nexport class DaffUnauthorizedError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthDriverErrorCodes.UNAUTHORIZED;\n\n constructor(public message: string) {\n\t super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthDriverErrorCodes } from './codes.enum';\n\nexport class DaffAuthenticationFailedError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthDriverErrorCodes.AUTHENTICATION_FAILED;\n\n constructor(public message: string) {\n\t super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthDriverErrorCodes } from './codes.enum';\n\n/**\n * An error thrown when registration failed.\n */\nexport class DaffRegistrationFailedError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthDriverErrorCodes.REGISTRATION_FAILED;\n\n constructor(public message: string) {\n\t super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthDriverErrorCodes } from './codes.enum';\n\nexport class DaffAuthInvalidAPIResponseError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthDriverErrorCodes.INVALID_API_RESPONSE;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import { DaffAuthenticationFailedError } from './authentication-failed';\nimport { DaffAuthDriverErrorCodes } from './codes.enum';\nimport { DaffAuthInvalidAPIResponseError } from './invalid-api-response';\nimport { DaffRegistrationFailedError } from './registration-failed';\nimport { DaffUnauthorizedError } from './unauthorized';\n\n/**\n * A mapping from error codes to error class constructors.\n */\nexport const DaffAuthDriverErrorMap = {\n [DaffAuthDriverErrorCodes.AUTHENTICATION_FAILED]: DaffAuthenticationFailedError,\n [DaffAuthDriverErrorCodes.INVALID_API_RESPONSE]: DaffAuthInvalidAPIResponseError,\n [DaffAuthDriverErrorCodes.REGISTRATION_FAILED]: DaffRegistrationFailedError,\n [DaffAuthDriverErrorCodes.UNAUTHORIZED]: DaffUnauthorizedError,\n};\n","import {\n Inject,\n Injectable,\n} from '@angular/core';\nimport {\n Observable,\n map,\n of,\n switchMap,\n throwError,\n} from 'rxjs';\n\nimport {\n DaffAuthStorageService,\n DaffAuthMissingTokenError,\n} from '@daffodil/auth';\n\nimport {\n DaffAuthDriver,\n DaffAuthServiceInterface,\n} from '../interfaces/public_api';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAuthDriverTokenCheck {\n constructor(\n private storage: DaffAuthStorageService,\n @Inject(DaffAuthDriver) private driver: DaffAuthServiceInterface,\n ) {}\n\n /**\n * Checks if the auth token in storage is valid.\n * If there is not an auth token in storage, the driver is not called\n * and an error is immediately thrown.\n */\n check(): Observable<void> {\n return of(null).pipe(\n switchMap(() => {\n const token = this.storage.getAuthToken();\n\n if (!token) {\n return throwError(() => new DaffAuthMissingTokenError('There is not an auth token in storage'));\n }\n\n return this.driver.check();\n }),\n );\n }\n}\n","import { DaffAuthErrorCodes } from '@daffodil/auth';\n\nimport { DaffAuthDriverErrorCodes } from '../errors/public_api';\n\n/**\n * The error codes that indicate that the user definitely should not be in an unauthenticated state\n * and if an auth token exists in storage, it is invalid.\n * These are contrasted to network failures and other sporadic and generic errors that aren't\n * a guarantee of the token's invalidity.\n */\nexport const DAFF_AUTH_UNAUTHENTICATED_ERROR_CODES = {\n [DaffAuthDriverErrorCodes.UNAUTHORIZED]: true,\n [DaffAuthDriverErrorCodes.AUTHENTICATION_FAILED]: true,\n [DaffAuthErrorCodes.MISSING_TOKEN]: true,\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAUa,cAAc,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,EAAA,EAAA,IAAA,EAAA,wBAAwB,wDAGzB,cAAc,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAHb,mBAAA,wBAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,cAFvB,MAAM,EAAA,CAAA,CAAA;2FAEP,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAHpC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;iBACnB,CAAA;;;8BAII,MAAM;+BAAC,cAAc,CAAA;;;;ACxB1B;;;;;AAKG;AACU,MAAA,qCAAqC,GAAG;AACnD,IAAA,CAAC,wBAAwB,CAAC,YAAY,GAAG,IAAI;AAC7C,IAAA,CAAC,wBAAwB,CAAC,qBAAqB,GAAG,IAAI;AACtD,IAAA,CAAC,kBAAkB,CAAC,aAAa,GAAG,IAAI;;;ACb1C;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"daffodil-auth-driver.mjs","sources":["../../../libs/auth/driver/src/interfaces/auth-service.interface.ts","../../../libs/auth/driver/src/interfaces/login-service.interface.ts","../../../libs/auth/driver/src/interfaces/register-service.interface.ts","../../../libs/auth/driver/src/interfaces/reset-password-service.interface.ts","../../../libs/auth/driver/src/errors/codes.enum.ts","../../../libs/auth/driver/src/errors/unauthorized.ts","../../../libs/auth/driver/src/errors/authentication-failed.ts","../../../libs/auth/driver/src/errors/registration-failed.ts","../../../libs/auth/driver/src/errors/invalid-api-response.ts","../../../libs/auth/driver/src/errors/map.ts","../../../libs/auth/driver/src/services/auth-check.service.ts","../../../libs/auth/driver/src/constants/unauthenticated-error-codes.ts","../../../libs/auth/driver/src/daffodil-auth-driver.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { Observable } from 'rxjs';\n\nexport interface DaffAuthServiceInterface {\n /**\n * Checks the validity of an auth token.\n */\n check(): Observable<void>;\n}\n\nexport const DaffAuthDriver = new InjectionToken<DaffAuthServiceInterface>('DaffAuthDriver');\n","import { InjectionToken } from '@angular/core';\nimport { Observable } from 'rxjs';\n\nimport {\n DaffLoginInfo,\n DaffAuthToken,\n} from '@daffodil/auth';\n\nexport interface DaffLoginServiceInterface<\n TRequest extends DaffLoginInfo = DaffLoginInfo,\n TResponse extends DaffAuthToken = DaffAuthToken\n> {\n /**\n * Logs the user in.\n *\n * @returns An access token.\n */\n login(loginInfo: TRequest): Observable<TResponse>;\n\n /**\n * Logs the user out by revoking their access token.\n */\n logout(): Observable<void>;\n}\n\nexport const DaffLoginDriver = new InjectionToken<DaffLoginServiceInterface>('DaffLoginDriver');\n","import { InjectionToken } from '@angular/core';\nimport { Observable } from 'rxjs';\n\nimport { DaffAccountRegistration } from '@daffodil/auth';\n\nexport interface DaffRegisterServiceInterface<\n TRequest extends DaffAccountRegistration = DaffAccountRegistration,\n> {\n\n /**\n * Registers an account for the specified customer and logs the customer in.\n *\n * @param registration The account registration info.\n * @return The authentication token.\n */\n register(registration: TRequest): Observable<string>;\n\n /**\n * Registers an account for the specified customer but does not log the customer in.\n *\n * @param registration The account registration info.\n */\n registerOnly(registration: TRequest): Observable<void>;\n}\n\nexport const DaffRegisterDriver = new InjectionToken<DaffRegisterServiceInterface>('DaffRegisterDriver');\n","import { InjectionToken } from '@angular/core';\nimport { Observable } from 'rxjs';\n\nimport { DaffAuthResetPasswordInfo } from '@daffodil/auth';\n\nexport interface DaffResetPasswordServiceInterface<\n T extends DaffAuthResetPasswordInfo = DaffAuthResetPasswordInfo,\n> {\n\n /**\n * Resets password for the specified customer and logs in.\n */\n resetPassword(info: T): Observable<string>;\n\n /**\n * Resets password for the specified customer.\n */\n resetPasswordOnly(info: T): Observable<void>;\n\n /**\n * Send a password reset email to the specified email address.\n */\n sendResetEmail(email: string): Observable<void>;\n}\n\nexport const DaffResetPasswordDriver = new InjectionToken<DaffResetPasswordServiceInterface>('DaffResetPasswordDriver');\n","export enum DaffAuthDriverErrorCodes {\n AUTHENTICATION_FAILED = 'DAFF_AUTH_AUTHENTICATION_FAILED',\n INVALID_API_RESPONSE = 'DAFF_AUTH_INVALID_API_RESPONSE',\n REGISTRATION_FAILED = 'DAFF_AUTH_REGISTRATION_FAILED',\n UNAUTHORIZED = 'DAFF_AUTH_UNAUTHORIZED',\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthDriverErrorCodes } from './codes.enum';\n\nexport class DaffUnauthorizedError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthDriverErrorCodes.UNAUTHORIZED;\n\n constructor(public message: string) {\n\t super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthDriverErrorCodes } from './codes.enum';\n\nexport class DaffAuthenticationFailedError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthDriverErrorCodes.AUTHENTICATION_FAILED;\n\n constructor(public message: string) {\n\t super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthDriverErrorCodes } from './codes.enum';\n\n/**\n * An error thrown when registration failed.\n */\nexport class DaffRegistrationFailedError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthDriverErrorCodes.REGISTRATION_FAILED;\n\n constructor(public message: string) {\n\t super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthDriverErrorCodes } from './codes.enum';\n\nexport class DaffAuthInvalidAPIResponseError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthDriverErrorCodes.INVALID_API_RESPONSE;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import { DaffAuthenticationFailedError } from './authentication-failed';\nimport { DaffAuthDriverErrorCodes } from './codes.enum';\nimport { DaffAuthInvalidAPIResponseError } from './invalid-api-response';\nimport { DaffRegistrationFailedError } from './registration-failed';\nimport { DaffUnauthorizedError } from './unauthorized';\n\n/**\n * A mapping from error codes to error class constructors.\n */\nexport const DaffAuthDriverErrorMap = {\n [DaffAuthDriverErrorCodes.AUTHENTICATION_FAILED]: DaffAuthenticationFailedError,\n [DaffAuthDriverErrorCodes.INVALID_API_RESPONSE]: DaffAuthInvalidAPIResponseError,\n [DaffAuthDriverErrorCodes.REGISTRATION_FAILED]: DaffRegistrationFailedError,\n [DaffAuthDriverErrorCodes.UNAUTHORIZED]: DaffUnauthorizedError,\n};\n","import {\n Inject,\n Injectable,\n} from '@angular/core';\nimport {\n Observable,\n map,\n of,\n switchMap,\n throwError,\n} from 'rxjs';\n\nimport {\n DaffAuthStorageService,\n DaffAuthMissingTokenError,\n} from '@daffodil/auth';\n\nimport {\n DaffAuthDriver,\n DaffAuthServiceInterface,\n} from '../interfaces/public_api';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAuthDriverTokenCheck {\n constructor(\n private storage: DaffAuthStorageService,\n @Inject(DaffAuthDriver) private driver: DaffAuthServiceInterface,\n ) {}\n\n /**\n * Checks if the auth token in storage is valid.\n * If there is not an auth token in storage, the driver is not called\n * and an error is immediately thrown.\n */\n check(): Observable<void> {\n return of(null).pipe(\n switchMap(() => {\n const token = this.storage.getAuthToken();\n\n if (!token) {\n return throwError(() => new DaffAuthMissingTokenError('There is not an auth token in storage'));\n }\n\n return this.driver.check();\n }),\n );\n }\n}\n","import { DaffAuthDriverErrorCodes } from '../errors/public_api';\n\n/**\n * The error codes that indicate that the user definitely should not be in an unauthenticated state\n * and if an auth token exists in storage, it is invalid.\n * These are contrasted to network failures and other sporadic and generic errors that aren't\n * a guarantee of the token's invalidity.\n */\nexport const DAFF_AUTH_UNAUTHENTICATED_ERROR_CODES = {\n [DaffAuthDriverErrorCodes.UNAUTHORIZED]: true,\n [DaffAuthDriverErrorCodes.AUTHENTICATION_FAILED]: true,\n};\n","/**\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A,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,wDAGzB,cAAc,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAHb,mBAAA,wBAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,cAFvB,MAAM,EAAA,CAAA,CAAA;2FAEP,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAHpC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;iBACnB,CAAA;;;8BAII,MAAM;+BAAC,cAAc,CAAA;;;;AC1B1B;;;;;AAKG;AACU,MAAA,qCAAqC,GAAG;AACnD,IAAA,CAAC,wBAAwB,CAAC,YAAY,GAAG,IAAI;AAC7C,IAAA,CAAC,wBAAwB,CAAC,qBAAqB,GAAG,IAAI;;;ACVxD;;AAEG;;;;"}
|
|
@@ -3,7 +3,7 @@ import { InjectionToken, Injectable, Inject } from '@angular/core';
|
|
|
3
3
|
import { DaffInheritableError } from '@daffodil/core';
|
|
4
4
|
import { of, switchMap, throwError } from 'rxjs';
|
|
5
5
|
import * as i1 from '@daffodil/auth';
|
|
6
|
-
import { DaffAuthMissingTokenError
|
|
6
|
+
import { DaffAuthMissingTokenError } from '@daffodil/auth';
|
|
7
7
|
|
|
8
8
|
const DaffAuthDriver = new InjectionToken('DaffAuthDriver');
|
|
9
9
|
|
|
@@ -107,7 +107,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImpor
|
|
|
107
107
|
const DAFF_AUTH_UNAUTHENTICATED_ERROR_CODES = {
|
|
108
108
|
[DaffAuthDriverErrorCodes.UNAUTHORIZED]: true,
|
|
109
109
|
[DaffAuthDriverErrorCodes.AUTHENTICATION_FAILED]: true,
|
|
110
|
-
[DaffAuthErrorCodes.MISSING_TOKEN]: true,
|
|
111
110
|
};
|
|
112
111
|
|
|
113
112
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daffodil-auth-driver.mjs","sources":["../../../libs/auth/driver/src/interfaces/auth-service.interface.ts","../../../libs/auth/driver/src/interfaces/login-service.interface.ts","../../../libs/auth/driver/src/interfaces/register-service.interface.ts","../../../libs/auth/driver/src/interfaces/reset-password-service.interface.ts","../../../libs/auth/driver/src/errors/codes.enum.ts","../../../libs/auth/driver/src/errors/unauthorized.ts","../../../libs/auth/driver/src/errors/authentication-failed.ts","../../../libs/auth/driver/src/errors/registration-failed.ts","../../../libs/auth/driver/src/errors/invalid-api-response.ts","../../../libs/auth/driver/src/errors/map.ts","../../../libs/auth/driver/src/services/auth-check.service.ts","../../../libs/auth/driver/src/constants/unauthenticated-error-codes.ts","../../../libs/auth/driver/src/daffodil-auth-driver.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { Observable } from 'rxjs';\n\nexport interface DaffAuthServiceInterface {\n /**\n * Checks the validity of an auth token.\n */\n check(): Observable<void>;\n}\n\nexport const DaffAuthDriver = new InjectionToken<DaffAuthServiceInterface>('DaffAuthDriver');\n","import { InjectionToken } from '@angular/core';\nimport { Observable } from 'rxjs';\n\nimport {\n DaffLoginInfo,\n DaffAuthToken,\n} from '@daffodil/auth';\n\nexport interface DaffLoginServiceInterface<\n TRequest extends DaffLoginInfo = DaffLoginInfo,\n TResponse extends DaffAuthToken = DaffAuthToken\n> {\n /**\n * Logs the user in.\n *\n * @returns An access token.\n */\n login(loginInfo: TRequest): Observable<TResponse>;\n\n /**\n * Logs the user out by revoking their access token.\n */\n logout(): Observable<void>;\n}\n\nexport const DaffLoginDriver = new InjectionToken<DaffLoginServiceInterface>('DaffLoginDriver');\n","import { InjectionToken } from '@angular/core';\nimport { Observable } from 'rxjs';\n\nimport { DaffAccountRegistration } from '@daffodil/auth';\n\nexport interface DaffRegisterServiceInterface<\n TRequest extends DaffAccountRegistration = DaffAccountRegistration,\n> {\n\n /**\n * Registers an account for the specified customer and logs the customer in.\n *\n * @param registration The account registration info.\n * @return The authentication token.\n */\n register(registration: TRequest): Observable<string>;\n\n /**\n * Registers an account for the specified customer but does not log the customer in.\n *\n * @param registration The account registration info.\n */\n registerOnly(registration: TRequest): Observable<void>;\n}\n\nexport const DaffRegisterDriver = new InjectionToken<DaffRegisterServiceInterface>('DaffRegisterDriver');\n","import { InjectionToken } from '@angular/core';\nimport { Observable } from 'rxjs';\n\nimport { DaffAuthResetPasswordInfo } from '@daffodil/auth';\n\nexport interface DaffResetPasswordServiceInterface<\n T extends DaffAuthResetPasswordInfo = DaffAuthResetPasswordInfo,\n> {\n\n /**\n * Resets password for the specified customer and logs in.\n */\n resetPassword(info: T): Observable<string>;\n\n /**\n * Resets password for the specified customer.\n */\n resetPasswordOnly(info: T): Observable<void>;\n\n /**\n * Send a password reset email to the specified email address.\n */\n sendResetEmail(email: string): Observable<void>;\n}\n\nexport const DaffResetPasswordDriver = new InjectionToken<DaffResetPasswordServiceInterface>('DaffResetPasswordDriver');\n","export enum DaffAuthDriverErrorCodes {\n AUTHENTICATION_FAILED = 'DAFF_AUTH_AUTHENTICATION_FAILED',\n INVALID_API_RESPONSE = 'DAFF_AUTH_INVALID_API_RESPONSE',\n REGISTRATION_FAILED = 'DAFF_AUTH_REGISTRATION_FAILED',\n UNAUTHORIZED = 'DAFF_AUTH_UNAUTHORIZED',\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthDriverErrorCodes } from './codes.enum';\n\nexport class DaffUnauthorizedError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthDriverErrorCodes.UNAUTHORIZED;\n\n constructor(public message: string) {\n\t super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthDriverErrorCodes } from './codes.enum';\n\nexport class DaffAuthenticationFailedError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthDriverErrorCodes.AUTHENTICATION_FAILED;\n\n constructor(public message: string) {\n\t super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthDriverErrorCodes } from './codes.enum';\n\n/**\n * An error thrown when registration failed.\n */\nexport class DaffRegistrationFailedError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthDriverErrorCodes.REGISTRATION_FAILED;\n\n constructor(public message: string) {\n\t super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthDriverErrorCodes } from './codes.enum';\n\nexport class DaffAuthInvalidAPIResponseError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthDriverErrorCodes.INVALID_API_RESPONSE;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import { DaffAuthenticationFailedError } from './authentication-failed';\nimport { DaffAuthDriverErrorCodes } from './codes.enum';\nimport { DaffAuthInvalidAPIResponseError } from './invalid-api-response';\nimport { DaffRegistrationFailedError } from './registration-failed';\nimport { DaffUnauthorizedError } from './unauthorized';\n\n/**\n * A mapping from error codes to error class constructors.\n */\nexport const DaffAuthDriverErrorMap = {\n [DaffAuthDriverErrorCodes.AUTHENTICATION_FAILED]: DaffAuthenticationFailedError,\n [DaffAuthDriverErrorCodes.INVALID_API_RESPONSE]: DaffAuthInvalidAPIResponseError,\n [DaffAuthDriverErrorCodes.REGISTRATION_FAILED]: DaffRegistrationFailedError,\n [DaffAuthDriverErrorCodes.UNAUTHORIZED]: DaffUnauthorizedError,\n};\n","import {\n Inject,\n Injectable,\n} from '@angular/core';\nimport {\n Observable,\n map,\n of,\n switchMap,\n throwError,\n} from 'rxjs';\n\nimport {\n DaffAuthStorageService,\n DaffAuthMissingTokenError,\n} from '@daffodil/auth';\n\nimport {\n DaffAuthDriver,\n DaffAuthServiceInterface,\n} from '../interfaces/public_api';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAuthDriverTokenCheck {\n constructor(\n private storage: DaffAuthStorageService,\n @Inject(DaffAuthDriver) private driver: DaffAuthServiceInterface,\n ) {}\n\n /**\n * Checks if the auth token in storage is valid.\n * If there is not an auth token in storage, the driver is not called\n * and an error is immediately thrown.\n */\n check(): Observable<void> {\n return of(null).pipe(\n switchMap(() => {\n const token = this.storage.getAuthToken();\n\n if (!token) {\n return throwError(() => new DaffAuthMissingTokenError('There is not an auth token in storage'));\n }\n\n return this.driver.check();\n }),\n );\n }\n}\n","import { DaffAuthErrorCodes } from '@daffodil/auth';\n\nimport { DaffAuthDriverErrorCodes } from '../errors/public_api';\n\n/**\n * The error codes that indicate that the user definitely should not be in an unauthenticated state\n * and if an auth token exists in storage, it is invalid.\n * These are contrasted to network failures and other sporadic and generic errors that aren't\n * a guarantee of the token's invalidity.\n */\nexport const DAFF_AUTH_UNAUTHENTICATED_ERROR_CODES = {\n [DaffAuthDriverErrorCodes.UNAUTHORIZED]: true,\n [DaffAuthDriverErrorCodes.AUTHENTICATION_FAILED]: true,\n [DaffAuthErrorCodes.MISSING_TOKEN]: true,\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAUa,cAAc,GAAG,IAAI,cAAc,CAA2B,gBAAgB;;MCe9E,eAAe,GAAG,IAAI,cAAc,CAA4B,iBAAiB;;MCAjF,kBAAkB,GAAG,IAAI,cAAc,CAA+B,oBAAoB;;MCA1F,uBAAuB,GAAG,IAAI,cAAc,CAAoC,yBAAyB;;ICzB1G,yBAKX;AALD,CAAA,UAAY,wBAAwB,EAAA;AAClC,IAAA,wBAAA,CAAA,uBAAA,CAAA,GAAA,iCAAyD,CAAA;AACzD,IAAA,wBAAA,CAAA,sBAAA,CAAA,GAAA,gCAAuD,CAAA;AACvD,IAAA,wBAAA,CAAA,qBAAA,CAAA,GA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M;AACnB,iBAAA,CAAA;;0BAII,MAAM;2BAAC,cAAc,CAAA;;;ACxB1B;;;;;AAKG;AACU,MAAA,qCAAqC,GAAG;AACnD,IAAA,CAAC,wBAAwB,CAAC,YAAY,GAAG,IAAI;AAC7C,IAAA,CAAC,wBAAwB,CAAC,qBAAqB,GAAG,IAAI;AACtD,IAAA,CAAC,kBAAkB,CAAC,aAAa,GAAG,IAAI;;;ACb1C;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"daffodil-auth-driver.mjs","sources":["../../../libs/auth/driver/src/interfaces/auth-service.interface.ts","../../../libs/auth/driver/src/interfaces/login-service.interface.ts","../../../libs/auth/driver/src/interfaces/register-service.interface.ts","../../../libs/auth/driver/src/interfaces/reset-password-service.interface.ts","../../../libs/auth/driver/src/errors/codes.enum.ts","../../../libs/auth/driver/src/errors/unauthorized.ts","../../../libs/auth/driver/src/errors/authentication-failed.ts","../../../libs/auth/driver/src/errors/registration-failed.ts","../../../libs/auth/driver/src/errors/invalid-api-response.ts","../../../libs/auth/driver/src/errors/map.ts","../../../libs/auth/driver/src/services/auth-check.service.ts","../../../libs/auth/driver/src/constants/unauthenticated-error-codes.ts","../../../libs/auth/driver/src/daffodil-auth-driver.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { Observable } from 'rxjs';\n\nexport interface DaffAuthServiceInterface {\n /**\n * Checks the validity of an auth token.\n */\n check(): Observable<void>;\n}\n\nexport const DaffAuthDriver = new InjectionToken<DaffAuthServiceInterface>('DaffAuthDriver');\n","import { InjectionToken } from '@angular/core';\nimport { Observable } from 'rxjs';\n\nimport {\n DaffLoginInfo,\n DaffAuthToken,\n} from '@daffodil/auth';\n\nexport interface DaffLoginServiceInterface<\n TRequest extends DaffLoginInfo = DaffLoginInfo,\n TResponse extends DaffAuthToken = DaffAuthToken\n> {\n /**\n * Logs the user in.\n *\n * @returns An access token.\n */\n login(loginInfo: TRequest): Observable<TResponse>;\n\n /**\n * Logs the user out by revoking their access token.\n */\n logout(): Observable<void>;\n}\n\nexport const DaffLoginDriver = new InjectionToken<DaffLoginServiceInterface>('DaffLoginDriver');\n","import { InjectionToken } from '@angular/core';\nimport { Observable } from 'rxjs';\n\nimport { DaffAccountRegistration } from '@daffodil/auth';\n\nexport interface DaffRegisterServiceInterface<\n TRequest extends DaffAccountRegistration = DaffAccountRegistration,\n> {\n\n /**\n * Registers an account for the specified customer and logs the customer in.\n *\n * @param registration The account registration info.\n * @return The authentication token.\n */\n register(registration: TRequest): Observable<string>;\n\n /**\n * Registers an account for the specified customer but does not log the customer in.\n *\n * @param registration The account registration info.\n */\n registerOnly(registration: TRequest): Observable<void>;\n}\n\nexport const DaffRegisterDriver = new InjectionToken<DaffRegisterServiceInterface>('DaffRegisterDriver');\n","import { InjectionToken } from '@angular/core';\nimport { Observable } from 'rxjs';\n\nimport { DaffAuthResetPasswordInfo } from '@daffodil/auth';\n\nexport interface DaffResetPasswordServiceInterface<\n T extends DaffAuthResetPasswordInfo = DaffAuthResetPasswordInfo,\n> {\n\n /**\n * Resets password for the specified customer and logs in.\n */\n resetPassword(info: T): Observable<string>;\n\n /**\n * Resets password for the specified customer.\n */\n resetPasswordOnly(info: T): Observable<void>;\n\n /**\n * Send a password reset email to the specified email address.\n */\n sendResetEmail(email: string): Observable<void>;\n}\n\nexport const DaffResetPasswordDriver = new InjectionToken<DaffResetPasswordServiceInterface>('DaffResetPasswordDriver');\n","export enum DaffAuthDriverErrorCodes {\n AUTHENTICATION_FAILED = 'DAFF_AUTH_AUTHENTICATION_FAILED',\n INVALID_API_RESPONSE = 'DAFF_AUTH_INVALID_API_RESPONSE',\n REGISTRATION_FAILED = 'DAFF_AUTH_REGISTRATION_FAILED',\n UNAUTHORIZED = 'DAFF_AUTH_UNAUTHORIZED',\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthDriverErrorCodes } from './codes.enum';\n\nexport class DaffUnauthorizedError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthDriverErrorCodes.UNAUTHORIZED;\n\n constructor(public message: string) {\n\t super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthDriverErrorCodes } from './codes.enum';\n\nexport class DaffAuthenticationFailedError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthDriverErrorCodes.AUTHENTICATION_FAILED;\n\n constructor(public message: string) {\n\t super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthDriverErrorCodes } from './codes.enum';\n\n/**\n * An error thrown when registration failed.\n */\nexport class DaffRegistrationFailedError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthDriverErrorCodes.REGISTRATION_FAILED;\n\n constructor(public message: string) {\n\t super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nimport { DaffAuthDriverErrorCodes } from './codes.enum';\n\nexport class DaffAuthInvalidAPIResponseError extends DaffInheritableError implements DaffError {\n public readonly code: string = DaffAuthDriverErrorCodes.INVALID_API_RESPONSE;\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import { DaffAuthenticationFailedError } from './authentication-failed';\nimport { DaffAuthDriverErrorCodes } from './codes.enum';\nimport { DaffAuthInvalidAPIResponseError } from './invalid-api-response';\nimport { DaffRegistrationFailedError } from './registration-failed';\nimport { DaffUnauthorizedError } from './unauthorized';\n\n/**\n * A mapping from error codes to error class constructors.\n */\nexport const DaffAuthDriverErrorMap = {\n [DaffAuthDriverErrorCodes.AUTHENTICATION_FAILED]: DaffAuthenticationFailedError,\n [DaffAuthDriverErrorCodes.INVALID_API_RESPONSE]: DaffAuthInvalidAPIResponseError,\n [DaffAuthDriverErrorCodes.REGISTRATION_FAILED]: DaffRegistrationFailedError,\n [DaffAuthDriverErrorCodes.UNAUTHORIZED]: DaffUnauthorizedError,\n};\n","import {\n Inject,\n Injectable,\n} from '@angular/core';\nimport {\n Observable,\n map,\n of,\n switchMap,\n throwError,\n} from 'rxjs';\n\nimport {\n DaffAuthStorageService,\n DaffAuthMissingTokenError,\n} from '@daffodil/auth';\n\nimport {\n DaffAuthDriver,\n DaffAuthServiceInterface,\n} from '../interfaces/public_api';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAuthDriverTokenCheck {\n constructor(\n private storage: DaffAuthStorageService,\n @Inject(DaffAuthDriver) private driver: DaffAuthServiceInterface,\n ) {}\n\n /**\n * Checks if the auth token in storage is valid.\n * If there is not an auth token in storage, the driver is not called\n * and an error is immediately thrown.\n */\n check(): Observable<void> {\n return of(null).pipe(\n switchMap(() => {\n const token = this.storage.getAuthToken();\n\n if (!token) {\n return throwError(() => new DaffAuthMissingTokenError('There is not an auth token in storage'));\n }\n\n return this.driver.check();\n }),\n );\n }\n}\n","import { DaffAuthDriverErrorCodes } from '../errors/public_api';\n\n/**\n * The error codes that indicate that the user definitely should not be in an unauthenticated state\n * and if an auth token exists in storage, it is invalid.\n * These are contrasted to network failures and other sporadic and generic errors that aren't\n * a guarantee of the token's invalidity.\n */\nexport const DAFF_AUTH_UNAUTHENTICATED_ERROR_CODES = {\n [DaffAuthDriverErrorCodes.UNAUTHORIZED]: true,\n [DaffAuthDriverErrorCodes.AUTHENTICATION_FAILED]: true,\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAUa,cAAc,GAAG,IAAI,cAAc,CAA2B,gBAAgB;;MCe9E,eAAe,GAAG,IAAI,cAAc,CAA4B,iBAAiB;;MCAjF,kBAAkB,GAAG,IAAI,cAAc,CAA+B,oBAAoB;;MCA1F,uBAAuB,GAAG,IAAI,cAAc,CAAoC,yBAAyB;;ICzB1G,yBAKX;AALD,CAAA,UAAY,wBAAwB,EAAA;AAClC,IAAA,wBAAA,CAAA,uBAAA,CAAA,GAAA,iCAAyD,CAAA;AACzD,IAAA,wBAAA,CAAA,sBAAA,CAAA,GAAA,gCAAuD,CAAA;AACvD,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,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;0BAII,MAAM;2BAAC,cAAc,CAAA;;;AC1B1B;;;;;AAKG;AACU,MAAA,qCAAqC,GAAG;AACnD,IAAA,CAAC,wBAAwB,CAAC,YAAY,GAAG,IAAI;AAC7C,IAAA,CAAC,wBAAwB,CAAC,qBAAqB,GAAG,IAAI;;;ACVxD;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@daffodil/auth","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/auth"]}}},"version":"0.62.
|
|
1
|
+
{"name":"@daffodil/auth","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/auth"]}}},"version":"0.62.2","description":"Reducers, State, Selectors, and Drivers for logging in and registering users.","repository":{"type":"git","url":"https://github.com/graycoreio/daffodil"},"author":"Graycore LLC","license":"MIT","bugs":{"url":"https://github.com/graycoreio/daffodil/issues"},"publishConfig":{"directory":"../../dist/auth"},"homepage":"https://github.com/graycoreio/daffodil","peerDependencies":{"@angular/common":"^13.0.0","@angular/core":"^13.0.0","@daffodil/core":"0.62.2","@ngrx/store":"^13.0.0","rxjs":"7.5.5"},"optionalDependencies":{"@daffodil/driver":"0.62.2"},"module":"fesm2015/daffodil-auth.mjs","es2020":"fesm2020/daffodil-auth.mjs","esm2020":"esm2020/daffodil-auth.mjs","fesm2020":"fesm2020/daffodil-auth.mjs","fesm2015":"fesm2015/daffodil-auth.mjs","typings":"daffodil-auth.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./daffodil-auth.d.ts","esm2020":"./esm2020/daffodil-auth.mjs","es2020":"./fesm2020/daffodil-auth.mjs","es2015":"./fesm2015/daffodil-auth.mjs","node":"./fesm2015/daffodil-auth.mjs","default":"./fesm2020/daffodil-auth.mjs"},"./driver/in-memory":{"types":"./driver/in-memory/daffodil-auth-driver-in-memory.d.ts","esm2020":"./esm2020/driver/in-memory/daffodil-auth-driver-in-memory.mjs","es2020":"./fesm2020/daffodil-auth-driver-in-memory.mjs","es2015":"./fesm2015/daffodil-auth-driver-in-memory.mjs","node":"./fesm2015/daffodil-auth-driver-in-memory.mjs","default":"./fesm2020/daffodil-auth-driver-in-memory.mjs"},"./driver/magento":{"types":"./driver/magento/daffodil-auth-driver-magento.d.ts","esm2020":"./esm2020/driver/magento/daffodil-auth-driver-magento.mjs","es2020":"./fesm2020/daffodil-auth-driver-magento.mjs","es2015":"./fesm2015/daffodil-auth-driver-magento.mjs","node":"./fesm2015/daffodil-auth-driver-magento.mjs","default":"./fesm2020/daffodil-auth-driver-magento.mjs"},"./driver":{"types":"./driver/daffodil-auth-driver.d.ts","esm2020":"./esm2020/driver/daffodil-auth-driver.mjs","es2020":"./fesm2020/daffodil-auth-driver.mjs","es2015":"./fesm2015/daffodil-auth-driver.mjs","node":"./fesm2015/daffodil-auth-driver.mjs","default":"./fesm2020/daffodil-auth-driver.mjs"},"./driver/testing":{"types":"./driver/testing/daffodil-auth-driver-testing.d.ts","esm2020":"./esm2020/driver/testing/daffodil-auth-driver-testing.mjs","es2020":"./fesm2020/daffodil-auth-driver-testing.mjs","es2015":"./fesm2015/daffodil-auth-driver-testing.mjs","node":"./fesm2015/daffodil-auth-driver-testing.mjs","default":"./fesm2020/daffodil-auth-driver-testing.mjs"},"./routing":{"types":"./routing/daffodil-auth-routing.d.ts","esm2020":"./esm2020/routing/daffodil-auth-routing.mjs","es2020":"./fesm2020/daffodil-auth-routing.mjs","es2015":"./fesm2015/daffodil-auth-routing.mjs","node":"./fesm2015/daffodil-auth-routing.mjs","default":"./fesm2020/daffodil-auth-routing.mjs"},"./state":{"types":"./state/daffodil-auth-state.d.ts","esm2020":"./esm2020/state/daffodil-auth-state.mjs","es2020":"./fesm2020/daffodil-auth-state.mjs","es2015":"./fesm2015/daffodil-auth-state.mjs","node":"./fesm2015/daffodil-auth-state.mjs","default":"./fesm2020/daffodil-auth-state.mjs"},"./state/testing":{"types":"./state/testing/daffodil-auth-state-testing.d.ts","esm2020":"./esm2020/state/testing/daffodil-auth-state-testing.mjs","es2020":"./fesm2020/daffodil-auth-state-testing.mjs","es2015":"./fesm2015/daffodil-auth-state-testing.mjs","node":"./fesm2015/daffodil-auth-state-testing.mjs","default":"./fesm2020/daffodil-auth-state-testing.mjs"},"./testing":{"types":"./testing/daffodil-auth-testing.d.ts","esm2020":"./esm2020/testing/daffodil-auth-testing.mjs","es2020":"./fesm2020/daffodil-auth-testing.mjs","es2015":"./fesm2015/daffodil-auth-testing.mjs","node":"./fesm2015/daffodil-auth-testing.mjs","default":"./fesm2020/daffodil-auth-testing.mjs"}},"sideEffects":false,"dependencies":{"tslib":"^2.3.0"}}
|
package/routing/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@daffodil/auth/routing","module":"../fesm2015/daffodil-auth-routing.mjs","es2020":"../fesm2020/daffodil-auth-routing.mjs","esm2020":"../esm2020/routing/daffodil-auth-routing.mjs","fesm2020":"../fesm2020/daffodil-auth-routing.mjs","fesm2015":"../fesm2015/daffodil-auth-routing.mjs","typings":"daffodil-auth-routing.d.ts","sideEffects":false,"version":"0.62.
|
|
1
|
+
{"name":"@daffodil/auth/routing","module":"../fesm2015/daffodil-auth-routing.mjs","es2020":"../fesm2020/daffodil-auth-routing.mjs","esm2020":"../esm2020/routing/daffodil-auth-routing.mjs","fesm2020":"../fesm2020/daffodil-auth-routing.mjs","fesm2015":"../fesm2015/daffodil-auth-routing.mjs","typings":"daffodil-auth-routing.d.ts","sideEffects":false,"version":"0.62.2"}
|
package/state/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@daffodil/auth/state","module":"../fesm2015/daffodil-auth-state.mjs","es2020":"../fesm2020/daffodil-auth-state.mjs","esm2020":"../esm2020/state/daffodil-auth-state.mjs","fesm2020":"../fesm2020/daffodil-auth-state.mjs","fesm2015":"../fesm2015/daffodil-auth-state.mjs","typings":"daffodil-auth-state.d.ts","sideEffects":false,"version":"0.62.
|
|
1
|
+
{"name":"@daffodil/auth/state","module":"../fesm2015/daffodil-auth-state.mjs","es2020":"../fesm2020/daffodil-auth-state.mjs","esm2020":"../esm2020/state/daffodil-auth-state.mjs","fesm2020":"../fesm2020/daffodil-auth-state.mjs","fesm2015":"../fesm2015/daffodil-auth-state.mjs","typings":"daffodil-auth-state.d.ts","sideEffects":false,"version":"0.62.2"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@daffodil/auth/state/testing","module":"../../fesm2015/daffodil-auth-state-testing.mjs","es2020":"../../fesm2020/daffodil-auth-state-testing.mjs","esm2020":"../../esm2020/state/testing/daffodil-auth-state-testing.mjs","fesm2020":"../../fesm2020/daffodil-auth-state-testing.mjs","fesm2015":"../../fesm2015/daffodil-auth-state-testing.mjs","typings":"daffodil-auth-state-testing.d.ts","sideEffects":false,"version":"0.62.
|
|
1
|
+
{"name":"@daffodil/auth/state/testing","module":"../../fesm2015/daffodil-auth-state-testing.mjs","es2020":"../../fesm2020/daffodil-auth-state-testing.mjs","esm2020":"../../esm2020/state/testing/daffodil-auth-state-testing.mjs","fesm2020":"../../fesm2020/daffodil-auth-state-testing.mjs","fesm2015":"../../fesm2015/daffodil-auth-state-testing.mjs","typings":"daffodil-auth-state-testing.d.ts","sideEffects":false,"version":"0.62.2"}
|
package/testing/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@daffodil/auth/testing","module":"../fesm2015/daffodil-auth-testing.mjs","es2020":"../fesm2020/daffodil-auth-testing.mjs","esm2020":"../esm2020/testing/daffodil-auth-testing.mjs","fesm2020":"../fesm2020/daffodil-auth-testing.mjs","fesm2015":"../fesm2015/daffodil-auth-testing.mjs","typings":"daffodil-auth-testing.d.ts","sideEffects":false,"version":"0.62.
|
|
1
|
+
{"name":"@daffodil/auth/testing","module":"../fesm2015/daffodil-auth-testing.mjs","es2020":"../fesm2020/daffodil-auth-testing.mjs","esm2020":"../esm2020/testing/daffodil-auth-testing.mjs","fesm2020":"../fesm2020/daffodil-auth-testing.mjs","fesm2015":"../fesm2015/daffodil-auth-testing.mjs","typings":"daffodil-auth-testing.d.ts","sideEffects":false,"version":"0.62.2"}
|