fix: add more testsx
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { Injectable, inject } from 'injection-js';
|
||||
import { toSignal } from 'injection-js/rxjs-interop';
|
||||
import type { Observable } from 'rxjs';
|
||||
import { concatMap, map, shareReplay } from 'rxjs/operators';
|
||||
import type { AuthOptions, LogoutAuthOptions } from './auth-options';
|
||||
@@ -62,14 +61,6 @@ export class OidcSecurityService {
|
||||
return this.userService.userData$;
|
||||
}
|
||||
|
||||
/**
|
||||
* Provides information about the user after they have logged in.
|
||||
*
|
||||
* @returns Returns an object containing either the user data directly (single config) or
|
||||
* the user data per config in case you are running with multiple configs
|
||||
*/
|
||||
userData = toSignal(this.userData$, { requireSync: true });
|
||||
|
||||
/**
|
||||
* Emits each time an authorization event occurs.
|
||||
*
|
||||
@@ -83,17 +74,6 @@ export class OidcSecurityService {
|
||||
return this.authStateService.authenticated$;
|
||||
}
|
||||
|
||||
/**
|
||||
* Emits each time an authorization event occurs.
|
||||
*
|
||||
* @returns Returns an object containing if you are authenticated or not.
|
||||
* Single Config: true if config is authenticated, false if not.
|
||||
* Multiple Configs: true is all configs are authenticated, false if only one of them is not
|
||||
*
|
||||
* The `allConfigsAuthenticated` property contains the auth information _per config_.
|
||||
*/
|
||||
authenticated = toSignal(this.isAuthenticated$, { requireSync: true });
|
||||
|
||||
/**
|
||||
* Emits each time the server sends a CheckSession event and the value changed. This property will always return
|
||||
* true.
|
||||
|
||||
Reference in New Issue
Block a user