Custom scheme / deep link with Redirects - invalid redirect URI

Problem Statement

We want to use Actions or Rules to redirect users to deep links/ custom scheme links. How can we accomplish this?

Symptoms

  • Invalid redirect URI error shown

Steps to Reproduce

exports.onExecutePostLogin = async (event, api) => { 
  api.redirect.sendUserTo("auth0.samples.Auth0Sample://sg-enterprise.us.auth0.com/ios/auth0.samples.Auth0Sample/callback"");
};​​

Cause

  • This is currently unsupported

Solution

The recommended solution is to redirect the users to https:// URIs instead.