Skip to content

Commit

Permalink
chore: fix interceptor
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk committed Nov 13, 2023
1 parent 1abe2d5 commit 2b1052c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/auth/src/provide.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { HTTP_INTERCEPTORS } from '@angular/common/http';
import { ɵHTTP_ROOT_INTERCEPTOR_FNS } from '@angular/common/http';
import { EnvironmentProviders, Provider, makeEnvironmentProviders } from '@angular/core';

import { CookieService } from '@delon/util/browser';
Expand Down Expand Up @@ -43,7 +43,7 @@ export function provideAuth(
export function withSimple(): AuthFeature<AuthFeatureKind.Token> {
return makeAuthFeature(AuthFeatureKind.Token, [
{
provide: HTTP_INTERCEPTORS,
provide: ɵHTTP_ROOT_INTERCEPTOR_FNS,
useClass: SimpleInterceptor,
multi: true
}
Expand All @@ -53,7 +53,7 @@ export function withSimple(): AuthFeature<AuthFeatureKind.Token> {
export function withJWT(): AuthFeature<AuthFeatureKind.Token> {
return makeAuthFeature(AuthFeatureKind.Token, [
{
provide: HTTP_INTERCEPTORS,
provide: ɵHTTP_ROOT_INTERCEPTOR_FNS,
useClass: JWTInterceptor,
multi: true
}
Expand Down

0 comments on commit 2b1052c

Please sign in to comment.