1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-04 13:21:45 +00:00

feat: display all accessible oidc clients in the dashboard (#832)

Co-authored-by: Kyle Mendell <ksm@ofkm.us>
This commit is contained in:
Elias Schneider
2025-08-17 22:47:34 +02:00
committed by GitHub
parent 3fa2f9a162
commit 3188e92257
28 changed files with 306 additions and 110 deletions

View File

@@ -9,4 +9,12 @@ async function authenticate(page: Page) {
await page.getByRole('button', { name: 'Authenticate' }).click();
}
export default { authenticate };
async function changeUser(page: Page, username: keyof typeof passkeyUtil.passkeys) {
await page.context().clearCookies();
await page.goto('/login');
await (await passkeyUtil.init(page)).addPasskey(username);
await page.getByRole('button', { name: 'Authenticate' }).click();
}
export default { authenticate, changeUser };

View File

@@ -67,4 +67,4 @@ async function addPasskey(
});
}
export default { init };
export default { init, passkeys };