# Shopify B2B logout redirection

**URL:** <https://community.auth0.com/t/shopify-b2b-logout-redirection/194317>\
**Category:** Get Help\
**Tags:** free-trial, login-experience\
**Created:** [November 11, 2025, 11:14am UTC](https://community.auth0.com/t/shopify-b2b-logout-redirection/194317 "2025-11-11T11:14:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![oliverhartley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/oliverhartley/32/72176_2.png) [@oliverhartley](https://community.auth0.com/u/oliverhartley)\
**Post date:** [November 11, 2025, 11:14am UTC](https://community.auth0.com/t/shopify-b2b-logout-redirection/194317/1 "2025-11-11T11:14:55Z")

</div>

I’m new to the platform and set up integration between our Shopify store and the Auth0 platform for authentication. However, I’m having issues when logging out of a B2B account from Shopify. The B2B logout code is handled by Shopify and hardcoded without a “ReturnTo” command, meaning the page hangs in Auth0 after logging out.

I want to be able to redirect customers to a homepage after logging out, but I can’t find a way to do this from within Auth0.

Can anyone help or suggest anything to try?

---

<div class="post-metadata">

**Author:** ![vlad.murarasu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vlad.murarasu/32/72793_2.png) [@vlad.murarasu](https://community.auth0.com/u/vlad.murarasu)\
**Post date:** [November 11, 2025, 1:12pm UTC](https://community.auth0.com/t/shopify-b2b-logout-redirection/194317/3 "2025-11-11T13:12:14Z")

</div>

Hi @oliverhartley,

Welcome to the Auth0 Community!

The behavior you’re seeing is expected when the `/v2/logout` endpoint is called without a `returnTo` parameter. To resolve this issue, you must configure a default logout URL in your Tenant Settings. You do this at the _Tenant_ level, not the Application level.

1. Navigate to your **Auth0 Dashboard**.
2. On the left-hand menu, go to **Settings** (this is the general Tenant Settings, not a specific application).
3. In the “Tenant Settings” page, find the **Allowed Logout URLs** field.
4. Enter your Shopify store’s homepage (e.g., `https://your-store-homepage.com`) into this field.
5. Scroll down and click **Save**.

When a logout request hits Auth0 _without_ a `returnTo` parameter, Auth0 will now check this tenant-level list. It will automatically redirect the user to the **first URL** it finds in this list, as stated in the [documentation](https://auth0.com/docs/authenticate/login/logout/redirect-users-after-logout#:~:text=If%20the%20client_id%20parameter%20is%20included%20and%20the%20returnTo%20URL%20is%20not%20set%2C%20the%20server%20returns%20the%20user%20to%20the%20first%20Allowed%20Logout%20URLs%20set%20in%20the%20Dashboard.)

You can read more about B2B Logout here:

> **[Logout (B2B)](https://auth0.com/docs/get-started/architecture-scenarios/business-to-business/logout)**
>
> User logout planning considerations for your B2B IAM implementation.

And about redirecting the users over here:

> **[Redirect Users with Alternative Logout](https://auth0.com/docs/authenticate/login/logout/redirect-users-after-logout)**
>
> Describes how to redirect users with the legacy logout endpoint.

If you have any further questions, please don’t hesitate to reach out.

Have a good one,

Vlad

---

<div class="post-metadata">

**Author:** ![oliverhartley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/oliverhartley/32/72176_2.png) [@oliverhartley](https://community.auth0.com/u/oliverhartley)\
**Post date:** [November 11, 2025, 1:57pm UTC](https://community.auth0.com/t/shopify-b2b-logout-redirection/194317/4 "2025-11-11T13:57:10Z")

</div>

Thanks for the feedback. Not sure if I’m missing something here, but I’d actually already tried this. I added the website’s homepage to the Allowed Logout URL at the tenant level, but I’m still having trouble with this. Just hangs on the logout completed screen

---

<div class="post-metadata">

**Author:** ![vlad.murarasu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vlad.murarasu/32/72793_2.png) [@vlad.murarasu](https://community.auth0.com/u/vlad.murarasu)\
**Post date:** [November 11, 2025, 6:24pm UTC](https://community.auth0.com/t/shopify-b2b-logout-redirection/194317/5 "2025-11-11T18:24:15Z")

</div>

Hi @oliverhartley,

Does the logout request contain the `client_id` parameter?

Have a good one,  
Vlad
