Asking for advice on authentication providers

System Information
  • Strapi Version: 3.4.1
  • Database: MongoDB
  • Node Version: 14.x
  • NPM Version: 6.x

Hi! I was using discord and google providers yesterdays as a way to signin / signup. And first of all it worked like a charm! Problem is that I can specify the redirect URI in the strapi admin panel but I’d like to be able to change said redirect URI dynamically.

For instance I want to be able to have


but also



I can configure the redirect_uri in the providers’settings (discord, google, etc.). For strapi I can only specify one.

What strategy should / could I enforce to easily manage different redirect_uri ? I was thinking of a cookie/localstorage system but it does not “feel” as clean a, for instance a “?redirect_uri={uri}” param.