Force dynamic on OAuth routes

See https://github.com/vercel/next.js/discussions/48989.
This commit is contained in:
Julian 2023-04-29 19:18:55 +00:00
parent 509b4a8f42
commit 5af2762e12
Signed by: NotNite
GPG Key ID: BD91A5402CCEB08A
2 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,8 @@
import { DiscordAuthProvider } from "@/auth/discord";
import { v4 } from "uuid";
export const dynamic = "force-dynamic";
export async function GET(request: Request) {
let url = `https://discord.com/oauth2/authorize`;
let state = v4();

View File

@ -1,6 +1,8 @@
import { GitHubAuthProvider } from "@/auth/github";
import { v4 } from "uuid";
export const dynamic = "force-dynamic";
export async function GET(request: Request) {
let url = `https://github.com/login/oauth/authorize`;
let state = v4();