refactor(server): auth service (#1383)

* refactor: auth

* chore: tests

* Remove await on non-async method

* refactor: constants

* chore: remove extra async

Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
Jason Rasmussen 2023-01-23 23:13:42 -05:00 committed by GitHub
parent 443d08381a
commit eade36ee82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
64 changed files with 1830 additions and 1901 deletions

View file

@ -37,12 +37,14 @@ const defaults: SystemConfig = Object.freeze({
},
});
const singleton = new Subject<SystemConfig>();
@Injectable()
export class SystemConfigCore {
private logger = new Logger(SystemConfigCore.name);
private validators: SystemConfigValidator[] = [];
public config$ = new Subject<SystemConfig>();
public config$ = singleton;
constructor(private repository: ISystemConfigRepository) {}