feat(oidc): show profile pic if present (#2006)

* feat(oidc): fetch profile picture

* small imprvements

* Add link to provider

* fix(rightnav): add cursor-pointer on hover

* adjust picture border and layout in RightNav and Account components

* cleanup

* oidc claims struct

* check if profile_picture exists

* simplify profile picture error handling

* adhere to autobrr log style

* fix: remove unused imports

---------

Co-authored-by: ze0s <43699394+zze0s@users.noreply.github.com>
This commit is contained in:
soup 2025-04-13 17:45:30 +02:00 committed by GitHub
parent a8c4114d6d
commit 1c23b5df57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 147 additions and 48 deletions

View file

@ -24,13 +24,17 @@ export interface AuthInfo {
username: string;
isLoggedIn: boolean;
authMethod?: 'password' | 'oidc';
profilePicture?: string;
issuerUrl?: string;
}
// Default values
const AuthContextDefaults: AuthInfo = {
username: "",
isLoggedIn: false,
authMethod: undefined
authMethod: undefined,
profilePicture: undefined,
issuerUrl: undefined
};
const SettingsContextDefaults: SettingsType = {