mirror of
https://github.com/tale/headplane.git
synced 2026-08-28 16:07:07 +00:00
feat: better error handling for oidc api key
This also ships with a better error page
This commit is contained in:
@@ -10,7 +10,11 @@ import { LoadContext } from '~/server';
|
||||
export async function loader({ context }: LoaderFunctionArgs<LoadContext>) {
|
||||
return {
|
||||
config: context.hs.writable(),
|
||||
oidc: context.oidc,
|
||||
oidc: context.oidc
|
||||
? typeof context.oidc === 'string'
|
||||
? undefined
|
||||
: context.oidc
|
||||
: undefined,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user