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:
@@ -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 };
|
||||
|
||||
@@ -67,4 +67,4 @@ async function addPasskey(
|
||||
});
|
||||
}
|
||||
|
||||
export default { init };
|
||||
export default { init, passkeys };
|
||||
|
||||
Reference in New Issue
Block a user