We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15b8c81 commit fbaa8beCopy full SHA for fbaa8be
src/runtime/callback.ts
@@ -12,6 +12,7 @@ import type { CookieSerializeOptions } from 'cookie-es'
12
import {
13
getEnv,
14
getHomeURL,
15
+ getRedirectUri,
16
} from '../core/utils'
17
import { getClient } from '../core/client'
18
@@ -29,7 +30,7 @@ export default defineEventHandler(async (event) => {
29
30
const homeURL = getHomeURL(profile, state.redirect)
31
const access = await client.getToken({
32
code : query.code as string,
- redirect_uri: getEnv(profile, 'REDIRECT_URI'),
33
+ redirect_uri: getRedirectUri(event, profile),
34
scope : getEnv(profile, 'SCOPE') || 'public read',
35
})
36
0 commit comments