refactor(config): 🔥 Remove old oidc section in config

This commit is contained in:
Jesse Wierzbinski 2024-10-11 17:03:33 +02:00
parent ce781f3336
commit 9f1e89b592
No known key found for this signature in database
9 changed files with 116 additions and 147 deletions

View file

@ -398,7 +398,14 @@ export class User extends BaseInterface<typeof Users, UserWithRelations> {
return this.update(this.data);
}
public async getLinkedOidcAccounts(): Promise<
public async getLinkedOidcAccounts(
providers: {
id: string;
name: string;
url: string;
icon?: string;
}[],
): Promise<
{
id: string;
name: string;
@ -414,7 +421,7 @@ export class User extends BaseInterface<typeof Users, UserWithRelations> {
return accounts
.map((account) => {
const issuer = config.oidc.providers.find(
const issuer = providers.find(
(provider) => provider.id === account.issuerId,
);