mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 13:59:16 +01:00
refactor(config): 🔥 Remove old oidc section in config
This commit is contained in:
parent
ce781f3336
commit
9f1e89b592
9 changed files with 116 additions and 147 deletions
|
|
@ -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,
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue