mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-11 11:49:19 +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 };
|
||||
|
||||
Reference in New Issue
Block a user