diff --git a/packages/adapter-nextjs/src/oauth/utils/initOAuthFlow.ts b/packages/adapter-nextjs/src/oauth/utils/initOAuthFlow.ts index 7f6bc1b6c98..278517c5c9c 100644 --- a/packages/adapter-nextjs/src/oauth/utils/initOAuthFlow.ts +++ b/packages/adapter-nextjs/src/oauth/utils/initOAuthFlow.ts @@ -19,6 +19,7 @@ import { NextServer } from '../../types'; import { getRedirectUrl } from './getRedirectUrl'; export const initOAuthFlow = async ({ + origin, request, customState, cognitoUserPoolConfig,