Double Execution of Workflow

Hi everyone,

I have created a web application with Strapi as a CMS. For authentication, I am using a magic link method. This method sends the user the Login Link via email, and on clicking the link, the user is redirected to the “Redirect Page,” on which I have added the following workflow to authenticate the user on Page load and then redirect them to the Home Page.

For some users, after navigating to the Home Page, the workflow triggers again automatically, but the New JWT token is not saved in the Client Browser.

How can I make sure that Workflow or the LoginAPI should not trigger a second time?

Hi, it’s not possible to fully understand the problem with one screenshot. Can you make a screen recording showing your app’s structure? You are redirecting to an intermediary page after clicking the magic link via email which takes them to the “Redirect Page” which will run the workflow in the screenshot. The question is, do you have any page workflows in the Home page?

Yes, I have following workflow on Home Page which load all the articles and checks if user is subscribed to newsletter or not?