Silent Auth is failing for Github and Email sign in

I’m having trouble getting a session to persist on my application locally. Here’s what I’m working with:

  • Github only login
  • Using Github app client ID and token (not auth0 defaults)
  • Right after the redirect from the Auth0 login page to my redirectTo page I am calling auth0.checkSession to check for a session and get the user profile. nothing is getting passed to my callback function so the accessToken and idTokens in the response are empty.
  • The following query params are being passed to my redirectTo url ?error=redirect_uri_mismatch&error_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application.&error_uri=https://developer.github.com/apps/managing-oauth-apps/troubleshooting-authorization-request-errors/#redirect-uri-mismatch&state=_VvuzuevKcf-ezC_cEFGQD5I0fcSy5Ee
  • as far as I can tell all the redirect/callback URIs match in my auth0 dashboard, GitHub OAuth app dashboard and in my code.
  • I’m not seeing any errors in my Auth0 dashboard logs when the above occurs

Anyone else seen this or know how I can better debug? I’ve been at if for hours now and am not making much progress. If more information is needed, just let me know. Any help is appreciated :pray:

1 Like

Here is the obfuscated HAR file of the process and issues that I’m seeing
dev.chronicler-notes.com.har (4.0 MB)

I also could not log in with GitHub until I realized that what GitHub wants as the “Authorization callback URL” was not my app’s URL, but Auth0’s, https://YOURDOMAIN.auth0.com/login/callback.