refactor: remove debug logs from auth components
Some checks failed
CI / Get Changed Files (pull_request) Successful in 7s
CI / prettier (pull_request) Failing after 23s
CI / eslint (pull_request) Failing after 28s
CI / test-build (pull_request) Successful in 1m16s
CI / Checkstyle Main (pull_request) Successful in 1m22s

This commit is contained in:
Jan K9f 2025-04-02 16:27:35 +02:00
commit 9de08ab233
Signed by: jank
GPG key ID: B9F475106B20F144
3 changed files with 2 additions and 30 deletions

View file

@ -44,7 +44,6 @@ export class UserService {
}
public getOrCreateUser(profile: Record<string, unknown>): Observable<User> {
console.log('Full authentik profile:', profile);
// Authentik format might differ from Keycloak
// Check different possible locations for the ID and username
const info = profile['info'] as Record<string, unknown> | undefined;
@ -56,11 +55,9 @@ export class UserService {
(profile['name'] as string);
if (!id || !username) {
console.error('Could not extract user ID or username from profile', profile);
throw new Error('Invalid user profile data');
}
console.log(`Creating user with id: ${id}, username: ${username}`);
return this.createUser(id, username);
}
}