mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
IdP findAccount
This commit is contained in:
parent
bcdd7b6da7
commit
82fac977af
@ -205,6 +205,15 @@ export async function createOidcProvider(options: { id: string, baseUrl: string
|
||||
ctx.type = "application/json";
|
||||
ctx.body = JSON.stringify(out);
|
||||
},
|
||||
|
||||
async findAccount(ctx, sub, token) {
|
||||
return {
|
||||
accountId: sub,
|
||||
async claims(use, scope, claims, rejected) {
|
||||
return { sub };
|
||||
},
|
||||
};
|
||||
},
|
||||
});
|
||||
|
||||
oidc.on('server_error', (ctx, err) => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user