diff --git a/src/server/lib/providers.ts b/src/server/lib/providers.ts index 0146360378..f59773b6b5 100644 --- a/src/server/lib/providers.ts +++ b/src/server/lib/providers.ts @@ -13,8 +13,8 @@ export default function parseProviders(params: { const { providers = [], base } = params return providers.map(({ options, ...defaultOptions }) => merge(defaultOptions, { - signinUrl: `${base}/signin/${defaultOptions.id}`, - callbackUrl: `${base}/callback/${defaultOptions.id}`, + signinUrl: `${base}/signin/${options?.id ?? defaultOptions.id}`, + callbackUrl: `${base}/callback/${options?.id ?? defaultOptions.id}`, ...options, }) )