Skip to content

Commit

Permalink
feat(auth)!: move error matcher injection token to state subpackage (#…
Browse files Browse the repository at this point in the history
…2645)

BREAKING CHANGE: error matcher injection token has moved to state subpackage
  • Loading branch information
griest024 committed Dec 11, 2023
1 parent 1d5f399 commit 770718b
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 20 deletions.
10 changes: 5 additions & 5 deletions libs/auth/routing/src/guards/guest-only.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ import {
tap,
} from 'rxjs/operators';

import {
DAFF_AUTH_ERROR_MATCHER,
DaffAuthStorageService,
} from '@daffodil/auth';
import { DaffAuthStorageService } from '@daffodil/auth';
import {
DAFF_AUTH_UNAUTHENTICATED_ERROR_CODES,
DaffAuthDriverErrorCodes,
DaffAuthDriverTokenCheck,
} from '@daffodil/auth/driver';
import { DaffAuthGuardLogout } from '@daffodil/auth/state';
import {
DAFF_AUTH_ERROR_MATCHER,
DaffAuthGuardLogout,
} from '@daffodil/auth/state';
import { DaffError } from '@daffodil/core';
import { ErrorTransformer } from '@daffodil/core/state';

Expand Down
10 changes: 5 additions & 5 deletions libs/auth/routing/src/guards/member-only.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ import {
tap,
} from 'rxjs/operators';

import {
DAFF_AUTH_ERROR_MATCHER,
DaffAuthStorageService,
} from '@daffodil/auth';
import { DaffAuthStorageService } from '@daffodil/auth';
import {
DAFF_AUTH_UNAUTHENTICATED_ERROR_CODES,
DaffAuthDriverErrorCodes,
DaffAuthDriverTokenCheck,
} from '@daffodil/auth/driver';
import { DaffAuthGuardLogout } from '@daffodil/auth/state';
import {
DAFF_AUTH_ERROR_MATCHER,
DaffAuthGuardLogout,
} from '@daffodil/auth/state';
import { DaffError } from '@daffodil/core';
import { ErrorTransformer } from '@daffodil/core/state';

Expand Down
1 change: 0 additions & 1 deletion libs/auth/src/injection-tokens/public_api.ts

This file was deleted.

1 change: 0 additions & 1 deletion libs/auth/src/public_api.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export { DaffAuthStorageService } from './storage/auth-storage.service';

export * from './models/public_api';
export * from './injection-tokens/public_api';
export * from './errors/public_api';
10 changes: 5 additions & 5 deletions libs/auth/state/src/effects/auth.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ import {
tap,
} from 'rxjs/operators';

import {
DaffAuthStorageService,
DAFF_AUTH_ERROR_MATCHER,
} from '@daffodil/auth';
import { DaffAuthStorageService } from '@daffodil/auth';
import {
DAFF_AUTH_UNAUTHENTICATED_ERROR_CODES,
DaffAuthDriverTokenCheck,
Expand Down Expand Up @@ -55,7 +52,10 @@ import {
DaffAuthStateConfig,
DAFF_AUTH_STATE_CONFIG,
} from '../config/public_api';
import { DaffAuthUnauthenticatedHook } from '../injection-tokens/public_api';
import {
DAFF_AUTH_ERROR_MATCHER,
DaffAuthUnauthenticatedHook,
} from '../injection-tokens/public_api';
import { DAFF_AUTH_UNAUTHENTICATED_HOOK } from '../injection-tokens/unauthenticated/hook.token';

@Injectable()
Expand Down
2 changes: 1 addition & 1 deletion libs/auth/state/src/effects/login.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {
import {
DaffLoginInfo,
DaffAuthToken,
DAFF_AUTH_ERROR_MATCHER,
DaffAuthStorageService,
} from '@daffodil/auth';
import {
Expand All @@ -43,6 +42,7 @@ import {
DaffAuthLoginActions,
DaffAuthStorageFailure,
} from '../actions/public_api';
import { DAFF_AUTH_ERROR_MATCHER } from '../injection-tokens/public_api';

@Injectable()
export class DaffAuthLoginEffects<
Expand Down
2 changes: 1 addition & 1 deletion libs/auth/state/src/effects/register.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import {
import {
DaffAccountRegistration,
DaffAuthStorageService,
DAFF_AUTH_ERROR_MATCHER,
} from '@daffodil/auth';
import {
DaffRegisterDriver,
Expand All @@ -44,6 +43,7 @@ import {
DaffAuthStorageFailure,
DaffAuthRegisterActions,
} from '../actions/public_api';
import { DAFF_AUTH_ERROR_MATCHER } from '../injection-tokens/public_api';

@Injectable()
export class DaffAuthRegisterEffects<
Expand Down
2 changes: 1 addition & 1 deletion libs/auth/state/src/effects/reset-password.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import {
} from 'rxjs/operators';

import {
DAFF_AUTH_ERROR_MATCHER,
DaffAuthResetPasswordInfo,
DaffAuthStorageService,
} from '@daffodil/auth';
Expand All @@ -47,6 +46,7 @@ import {
DaffAuthServerSide,
DaffAuthStorageFailure,
} from '../actions/public_api';
import { DAFF_AUTH_ERROR_MATCHER } from '../injection-tokens/public_api';

@Injectable()
export class DaffAuthResetPasswordEffects<
Expand Down
1 change: 1 addition & 0 deletions libs/auth/state/src/injection-tokens/public_api.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './unauthenticated/public_api';
export { DAFF_AUTH_ERROR_MATCHER } from './error-matcher.token';

0 comments on commit 770718b

Please sign in to comment.