@auth0/nextjs-auth0 skipping Universal Login and login directly with a social connection name

@auth0/nextjs-auth0”: “0.16.0”
“next”: “10.0.3”,
“react”: “17.0.1”,
“react-dom”: “17.0.1”

Hello,

I’m using https://github.com/vercel/next.js/tree/master/examples/auth0 auth0 example to authenticate with next-js.
I have two social connections configured, Bitbucket and Github. How do i skip the Universal Login Screen and go directly to the relevant connection?

handleLogin: (req: NextApiRequest, res: NextApiResponse, options?: LoginOptions) => Promise;

export interface LoginOptions {
getState?: (req: NextApiRequest) => Record<string, any>;
authParams?: AuthorizationParameters;
redirectTo?: string;
}

export interface AuthorizationParameters {
acr_values?: string;
audience?: string;
display?: string;
login_hint?: string;
max_age?: string;
prompt?: string;
scope?: string;
state?: string;
ui_locales?: string;
[key: string]: unknown;
}

I don’t see any params to pass the connection name, how do i do that?

Hey! I have the same question but using the @auth0/auth0-react SDK
Also no option for passing the (social) connection value
Thanks

this is very important. @konrad.sopala can you help?

Ok found the answer

just use authParams: {connection: ‘github’} @stefanos

1 Like

Thanks for sharing that with the rest of community!

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