User invite flow: Directly login after the new user resets password

I am trying to set loginAfterSignUp within lock to take the user directly after a user signs up for the first time.
var lock = new Auth0Lock(config.clientID, config.auth0Domain, {
auth: {
redirectUrl: config.callbackURL,
responseType: (config.internalOptions || {}).response_type ||
(config.callbackOnLocationHash ? ‘token’ : ‘code’),
params: config.internalOptions
},
configurationBaseUrl: config.clientConfigurationBaseUrl,
overrides: {
__tenant: config.auth0Tenant,
__token_issuer: config.authorizationServer.issuer
},
assetsUrl: config.assetsUrl,
allowedConnections: connection ? [connection] : null,
rememberLastLogin: !prompt,
language: language,
languageDictionary: languageDictionary,
mustAcceptTerms: true,
loginAfterSignUp: false,
theme: {
logo: “logoUrl”,
primaryColor: colors.primary ? colors.primary : ‘green’
},
prefill: loginHint ? { email: loginHint, username: loginHint } : null,
closable: false,
defaultADUsernameFromEmailPrefix: false
});

Expectation: User gets signup email → taken to the password reset page and enters password → redirected to the app.
Reality: User gets signup email → taken to the password reset page and enters password → taken to login page-> redirected to the app.