feat: begin working on user auth
This commit is contained in:
parent
8429b19c4a
commit
bf02015dc7
11 changed files with 562 additions and 118 deletions
|
|
@ -40,12 +40,15 @@ const appLoadContext = {
|
|||
),
|
||||
|
||||
// TODO: Better cookie options in config
|
||||
sessions: createSessionStorage({
|
||||
name: '_hp_session',
|
||||
maxAge: 60 * 60 * 24, // 24 hours
|
||||
secure: config.server.cookie_secure,
|
||||
secrets: [config.server.cookie_secret],
|
||||
}),
|
||||
sessions: await createSessionStorage(
|
||||
{
|
||||
name: '_hp_session',
|
||||
maxAge: 60 * 60 * 24, // 24 hours
|
||||
secure: config.server.cookie_secure,
|
||||
secrets: [config.server.cookie_secret],
|
||||
},
|
||||
config.oidc?.user_storage_file,
|
||||
),
|
||||
|
||||
client: await createApiClient(
|
||||
config.headscale.url,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue