refactor(user): clean up comments and rename variables
All checks were successful
All checks were successful
This commit is contained in:
parent
25c68e230d
commit
02453449cd
5 changed files with 4 additions and 41 deletions
|
@ -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 =
|
||||
|
|
Reference in a new issue