Login hint to pick personal account instead of organization when using "both" on application settings

We have a mobile application setup with refresh tokens. Lots of users have logged in and are using the refresh token to get new access tokens. The application on Auth0 side is configured to use Organizations.

We want to move away from using Organizations, but when the application setting is set to “Individual” from “Business” the refresh tokens stop working. It fails on a call to get the new access token with “The refresh token was generated in the context of an organization but the associated client no longer allows it.”

This then forces the user to log out.

Our other option for a smooth transition to no organizations is to set the application to “Both” that lets the users be part of no organization. We can then move the users to zero organizations over time.

My first question is if it is possible to bypass the personal account vs choose an organization dialog when the user logs in? Since we want our application to handle organization switches, the user should ideally always be using their personal account.

I know you can pass in the organization when logging in, which bypasses the organization prompt when logging in at least when the application is set to Business.

We’d like to avoid logging out all our users.

Hi @diederik,

You should be able to configure the login flow for your application to select Both as your user type and the Prompt for Credentials option when users log into your app.

This way, after they log in successfully, they are prompted to choose to log in to their personal account or organization account (if they belong to one). However, with this approach, the users won’t be able to bypass this selection process.

If you prefer these users to always log in to their personal account, you should select the No prompt option, so they can only log into their organization if you provide the organization query parameter in the login request.

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.