We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 688ae2e commit beb8e0dCopy full SHA for beb8e0d
1 file changed
src/server/auth.ts
@@ -12,7 +12,7 @@ export function authenticate(): never {
12
"?" +
13
new URLSearchParams({
14
client_id: env.AUTH_CLIENT_ID,
15
- redirect_uri: env.AUTH_REDIRECT_URI,
+ redirect_uri: new URL("/api/auth", env.AUTH_REDIRECT_URI).toString(),
16
}).toString(),
17
env.AUTH_ENDPOINT,
18
).toString(),
@@ -105,7 +105,7 @@ export async function handleOAuthRedirect(request: NextRequest) {
105
client_secret: env.AUTH_CLIENT_SECRET,
106
code: code,
107
grant_type: "authorization_code",
108
109
110
})
111
.then((res) => res.json())
0 commit comments