Force dynamic on OAuth routes
See https://github.com/vercel/next.js/discussions/48989.
This commit is contained in:
parent
509b4a8f42
commit
5af2762e12
2 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue