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 0c4d050 commit f75e680Copy full SHA for f75e680
src/runtime/server/lib/oauth/google.ts
@@ -72,7 +72,7 @@ export function defineOAuthGoogleEventHandler({
72
authorizationParams: {},
73
}) as OAuthGoogleConfig
74
75
- const query = getQuery<{ code?: string }>(event)
+ const query = getQuery<{ code?: string, state?: string }>(event)
76
77
if (!config.clientId) {
78
return handleMissingConfiguration(event, 'google', ['clientId'], onError)
@@ -89,6 +89,7 @@ export function defineOAuthGoogleEventHandler({
89
client_id: config.clientId,
90
redirect_uri: redirectURL,
91
scope: config.scope.join(' '),
92
+ state: query.state || '',
93
...config.authorizationParams,
94
}),
95
)
0 commit comments