forked from NotNet/gluestick
Force dynamic on OAuth routes
See https://github.com/vercel/next.js/discussions/48989.
This commit is contained in:
parent
509b4a8f42
commit
5af2762e12
|
@ -1,6 +1,8 @@
|
||||||
import { DiscordAuthProvider } from "@/auth/discord";
|
import { DiscordAuthProvider } from "@/auth/discord";
|
||||||
import { v4 } from "uuid";
|
import { v4 } from "uuid";
|
||||||
|
|
||||||
|
export const dynamic = "force-dynamic";
|
||||||
|
|
||||||
export async function GET(request: Request) {
|
export async function GET(request: Request) {
|
||||||
let url = `https://discord.com/oauth2/authorize`;
|
let url = `https://discord.com/oauth2/authorize`;
|
||||||
let state = v4();
|
let state = v4();
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
import { GitHubAuthProvider } from "@/auth/github";
|
import { GitHubAuthProvider } from "@/auth/github";
|
||||||
import { v4 } from "uuid";
|
import { v4 } from "uuid";
|
||||||
|
|
||||||
|
export const dynamic = "force-dynamic";
|
||||||
|
|
||||||
export async function GET(request: Request) {
|
export async function GET(request: Request) {
|
||||||
let url = `https://github.com/login/oauth/authorize`;
|
let url = `https://github.com/login/oauth/authorize`;
|
||||||
let state = v4();
|
let state = v4();
|
||||||
|
|
Loading…
Reference in New Issue