Bypass Organization Picker by passing org id / name

We use the universal login with organizations b2b and express openid as a client library. When a user is member of +1 organizations the organization picker shows up after login. Can we bypass the picker since we know the org id / name when initiating login process. I cant seem to find a worrking example. I am trying with

		res.oidc.login({
			returnTo: '/dashboard',
			authorizationParams: {
				response_type: 'code',
				audience: 'xxx',
				scope: 'openid profile email',
				redirect_uri: `${baseUrl}/callback`,
				org_id: 'org_xxxxxxxxxxx',
				screen_hint: 'signup',
				organization: 'org_xxxxxxxxxxx', //req.query?.organization,
			},
		}),

Eventually the addtitional parameters are not passed over to the picker - how can i auto select an organization and skip the picker?

Hi @cooki,

Welcome to the Auth0 Community!

If you would like to “bypass” the organization picker in the login flow, you will need to go to your Auth0 Dashboard > Applications > Applications and select your application. In the settings page, you will need to navigate to your Organizations tab and select “No Prompt” for your login flow.

This will remove the organization picker option from your login flow. After doing so, you must provide the org_id in the login request to allow your users to log in in the context of an organization.

Let me know if you have any questions.

Thanks,
Rueben

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.