Detecting social login exists from auth0 JS library

I’m using auth0 JS version 9.14 in a customized universal login page.

My login page includes both sign up and sign in functionality for social and username/password logins. I use the auth0.WebAuth() library and webAuth.authorize() for google or facebook.

On the sign up form I have a checkbox to enforce the user checks the terms & conditions. I don’t want to have this same checkbox on the signin form, however, a user can simply bypass it on the signup and got straight to sign in.

My question is how to determine if a user has signed in already from a social account? I can see from auth0-js - npm that there is a checkSession() method. This seems possible but I wanted to check if there’s a better way?

Hey there!

The best way to get that specific guidance would be to raise it as a GitHub issue in the SDK repo so we can talk about it directly with the repo maintainers. Once you have a link to it you can share it here so we can ping them. Thank you!