# Implementing Passwordless Login/Signup in Discourse with Auth0 via APIs?

**URL:** https://meta.discourse.org/t/implementing-passwordless-login-signup-in-discourse-with-auth0-via-apis/332213
**Category:** SSO
**Created:** [October 22, 2024, 7:30pm UTC](https://meta.discourse.org/t/implementing-passwordless-login-signup-in-discourse-with-auth0-via-apis/332213 "2024-10-22T19:30:33Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Tech\_Geek](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tech_geek/32/457980_2.png) [@Tech\_Geek](https://meta.discourse.org/u/Tech_Geek)
#### Post date: [October 22, 2024, 7:30pm UTC](https://meta.discourse.org/t/implementing-passwordless-login-signup-in-discourse-with-auth0-via-apis/332213/1 "2024-10-22T19:30:33Z")

</div>

Hi,

I’m building an app that uses Auth0 for user login/signup through passwordless magic links, and all interactions are handled via APIs. I want users to automatically log in to our Discourse community if they are already registered. If they are not registered, I want them to be automatically signed up and logged in via the magic link.

Additionally, if a user logs in via Auth0 on Shopify, can this be extended to automatically log them into Discourse as well?

Can this be achieved using Auth0 with Discourse through APIs, and how should I implement it?

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [October 23, 2024, 12:07am UTC](https://meta.discourse.org/t/implementing-passwordless-login-signup-in-discourse-with-auth0-via-apis/332213/2 "2024-10-23T00:07:55Z")

</div>

> [@Tech\_Geek](#):
>
> automatically signed up and logged in via the magic link

But it would still have to ask for the username and email?

---

<div class="post-metadata">

### Author: ![Tech\_Geek](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tech_geek/32/457980_2.png) [@Tech\_Geek](https://meta.discourse.org/u/Tech_Geek)
#### Post date: [October 23, 2024, 12:56am UTC](https://meta.discourse.org/t/implementing-passwordless-login-signup-in-discourse-with-auth0-via-apis/332213/3 "2024-10-23T00:56:25Z")

</div>

> [@NateDhaliwal](#):
>
> But it would still have to ask for the username and email?

Considering the user is already registered on Auth0, I want the user to be automatically log in to discourse if he already has an account on discourse otherwise the user should be automatically registered and then logged into discourse.
