mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
feat(oidc): implement OIDC Fastify plugin with login redirect and callback
This commit is contained in:
@@ -261,7 +261,6 @@ export async function authRoutes(app: FastifyInstance): Promise<void> {
|
||||
|
||||
if (session?.idToken && env.OIDC_ENABLED) {
|
||||
try {
|
||||
// @ts-expect-error -- oidc.ts is created in a later task; try/catch handles its absence at runtime
|
||||
const { getOidcEndSessionEndpoint } = await import("./oidc.js");
|
||||
const endSessionEndpoint = getOidcEndSessionEndpoint();
|
||||
if (endSessionEndpoint) {
|
||||
|
||||
Reference in New Issue
Block a user