feat: add logout and dropdown
This commit is contained in:
parent
3f65c7e610
commit
50bcfa9c04
7 changed files with 144 additions and 19 deletions
|
|
@ -126,6 +126,11 @@ export async function finishOidc(issuer: string, client: string, secret: string,
|
|||
})
|
||||
|
||||
session.set('hsApiKey', keyResponse.apiKey)
|
||||
session.set('user', {
|
||||
name: claims.name ? String(claims.name) : 'Anonymous',
|
||||
email: claims.email ? String(claims.email) : undefined
|
||||
})
|
||||
|
||||
return redirect('/machines', {
|
||||
headers: {
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue