refactor: remove debug logs from auth components
Some checks failed
Some checks failed
This commit is contained in:
parent
2e76446328
commit
9de08ab233
3 changed files with 2 additions and 30 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue