style: cleanup oidc spaghetti

This commit is contained in:
Aarnav Tale 2024-05-21 23:57:03 -04:00
parent 84855d9d51
commit 694b22f205
No known key found for this signature in database
3 changed files with 70 additions and 56 deletions

View file

@ -9,10 +9,5 @@ export async function loader({ request }: LoaderFunctionArgs) {
throw new Error('An invalid OIDC configuration was provided')
}
return finishOidc(
context.oidc.issuer,
context.oidc.client,
context.oidc.secret,
request,
)
return finishOidc(context.oidc, request)
}