Skip to content

Commit ba687a8

Browse files
Enforce singletoness on the service
We really want only exactly one service handling authentication.
1 parent 7c59721 commit ba687a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/auth.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { OAuthErrorEvent, OAuthService } from 'angular-oauth2-oidc';
44
import { BehaviorSubject, combineLatest, Observable, ReplaySubject } from 'rxjs';
55
import { filter, map } from 'rxjs/operators';
66

7-
@Injectable()
7+
@Injectable({ providedIn: 'root' })
88
export class AuthService {
99

1010
private isAuthenticatedSubject$ = new BehaviorSubject<boolean>(false);

0 commit comments

Comments
 (0)