Not clear how to login with Trigger.dev template #46

Open
opened 2025-11-22 20:29:45 -06:00 by GiteaMirror · 8 comments
Owner

Originally created by @maelp on GitHub (Apr 29, 2025).

When running the trigger.dev template it seems we need to get a "magic link" through email, but since there is no mail server config it doesn't work, how are we supposed to login?

Originally created by @maelp on GitHub (Apr 29, 2025). When running the trigger.dev template it seems we need to get a "magic link" through email, but since there is no mail server config it doesn't work, how are we supposed to login?
Author
Owner

@maelp commented on GitHub (Apr 29, 2025):

After checking the doc you have to go to the log console, but it would perhaps be better to have some kind of documentation for this (see https://github.com/Dokploy/templates/issues/107)

Image

@maelp commented on GitHub (Apr 29, 2025): After checking the doc you have to go to the log console, but it would perhaps be better to have some kind of documentation for this (see https://github.com/Dokploy/templates/issues/107) ![Image](https://github.com/user-attachments/assets/ead08fff-5cc4-4413-85a9-3c5b7649c143)
Author
Owner

@maelp commented on GitHub (Apr 29, 2025):

Although even this doesn't seem to work (at least with the "basic" setup)... using the magic link from the log console just redirects back to the login page

@maelp commented on GitHub (Apr 29, 2025): Although even this doesn't seem to work (at least with the "basic" setup)... using the magic link from the log console just redirects back to the login page
Author
Owner

@maelp commented on GitHub (Apr 29, 2025):

Perhaps it requires a custom domain ? or HTTPS?

@maelp commented on GitHub (Apr 29, 2025): Perhaps it requires a custom domain ? or HTTPS?
Author
Owner

@maelp commented on GitHub (Apr 29, 2025):

There's this error which might be related?

Image

@maelp commented on GitHub (Apr 29, 2025): There's this error which might be related? ![Image](https://github.com/user-attachments/assets/f9d886d5-2a4e-41fa-847d-26b29bb5a7c2)
Author
Owner

@maelp commented on GitHub (Apr 29, 2025):

Added it here

  electric:
    image: electricsql/electric:${ELECTRIC_IMAGE_TAG:-latest}
    restart: ${RESTART_POLICY:-unless-stopped}
    environment:
      DATABASE_URL: ${DATABASE_URL}?sslmode=disable
      ELECTRIC_SECRET: ${ELECTRIC_SECRET}
    networks:
      - webapp
    depends_on:
      - postgres
    ports:
      - 3000
@maelp commented on GitHub (Apr 29, 2025): Added it here ```yml electric: image: electricsql/electric:${ELECTRIC_IMAGE_TAG:-latest} restart: ${RESTART_POLICY:-unless-stopped} environment: DATABASE_URL: ${DATABASE_URL}?sslmode=disable ELECTRIC_SECRET: ${ELECTRIC_SECRET} networks: - webapp depends_on: - postgres ports: - 3000 ```
Author
Owner

@maelp commented on GitHub (Apr 29, 2025):

Seems this was the issue, I guess we should add it to the template

@maelp commented on GitHub (Apr 29, 2025): Seems this was the issue, I guess we should add it to the template
Author
Owner

@duchao commented on GitHub (Jun 21, 2025):

Seems this was the issue, I guess we should add it to the template

Hi, I’m currently encountering an issue with the magic link login flow. Even though I can successfully generate the magic link and see it in the console, when I click the link, it redirects me to the homepage instead of completing the authentication.

Is there any recommended way to solve this? Could you advise how to properly handle or debug this redirection issue?

@duchao commented on GitHub (Jun 21, 2025): > Seems this was the issue, I guess we should add it to the template Hi, I’m currently encountering an issue with the magic link login flow. Even though I can successfully generate the magic link and see it in the console, when I click the link, it redirects me to the homepage instead of completing the authentication. Is there any recommended way to solve this? Could you advise how to properly handle or debug this redirection issue?
Author
Owner

@duchao commented on GitHub (Jun 21, 2025):

Seems this was the issue, I guess we should add it to the template

Hi, I’m currently encountering an issue with the magic link login flow. Even though I can successfully generate the magic link and see it in the console, when I click the link, it redirects me to the homepage instead of completing the authentication.

Is there any recommended way to solve this? Could you advise how to properly handle or debug this redirection issue?

I’ve resolved the issue. The problem was that the domain was using https instead of http, and I also needed to update the Environment Settings to use https accordingly. After making these changes, the magic link works as expected.

@duchao commented on GitHub (Jun 21, 2025): > > Seems this was the issue, I guess we should add it to the template > > Hi, I’m currently encountering an issue with the magic link login flow. Even though I can successfully generate the magic link and see it in the console, when I click the link, it redirects me to the homepage instead of completing the authentication. > > Is there any recommended way to solve this? Could you advise how to properly handle or debug this redirection issue? I’ve resolved the issue. The problem was that the domain was using https instead of http, and I also needed to update the Environment Settings to use https accordingly. After making these changes, the magic link works as expected.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/templates#46