Add authenticated login and SSO protection
This commit is contained in:
1 parent
e36f28a668
commit
0648874801
50 files changed
+1853
-63
No files matched your search
@@ -0,0 +1,11 @@
|
||||
import { completeAuthorizationCallback, redirectToLoginWithError } from "@/lib/server/auth/oauth";
|
||||
|
||||
export const runtime = "nodejs";
|
||||
|
||||
export async function GET(request: Request) {
|
||||
try {
|
||||
return await completeAuthorizationCallback(request);
|
||||
} catch {
|
||||
return redirectToLoginWithError(request, "callback_failed");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user