Merge pull request #25254 from Zaperex/update-auth-node-signin-resolver

chore(auth-node): allow declarative signin resolvers to take precedence
This commit is contained in:
Patrik Oldsberg
2024-08-06 13:43:56 +02:00
committed by GitHub
2 changed files with 6 additions and 2 deletions
@@ -43,11 +43,10 @@ export function createOAuthProviderFactory<TProfile>(options: {
return ctx => {
return OAuthEnvironmentHandler.mapConfig(ctx.config, envConfig => {
const signInResolver =
options.signInResolver ??
readDeclarativeSignInResolver({
config: envConfig,
signInResolverFactories: options.signInResolverFactories ?? {},
});
}) ?? options.signInResolver;
return createOAuthRouteHandlers<TProfile>({
authenticator: options.authenticator,