We got a new version of our frontend application. We want to roll it out slowly, so thinking about to have a environment meta data if the users should see the new or the current version.
I created a login action, dont think that the authentication and other variables are send. Is there a good way in auth0 or do we need to implement it into the frontend?
exports.onExecutePostLogin = async (event, api) => {
if (
event.organization != null
&& event.organization.metadata.new_frontend
)
{
api.redirect.sendUserTo("https://my-app.example.com");
}
};
For both version we have a client_id, so maybe change the client_id or something like that