refactor(user): clean up comments and rename variables
All checks were successful
CI / Get Changed Files (pull_request) Successful in 6s
CI / eslint (pull_request) Successful in 25s
CI / test-build (pull_request) Successful in 31s
CI / prettier (pull_request) Successful in 56s
CI / Checkstyle Main (pull_request) Successful in 2m12s

This commit is contained in:
Jan K9f 2025-04-03 11:51:55 +02:00
commit 02453449cd
Signed by: jank
GPG key ID: 22BEAC760B3333D6
5 changed files with 4 additions and 41 deletions

View file

@ -43,8 +43,6 @@ export class UserService {
}
public getOrCreateUser(profile: Record<string, unknown>): Observable<User> {
// Authentik format might differ from Keycloak
// Check different possible locations for the ID and username
const info = profile['info'] as Record<string, unknown> | undefined;
const id = (info?.['sub'] as string) || (profile['sub'] as string);
const username =