# Auth0 custom logout with node js

**URL:** <https://community.auth0.com/t/auth0-custom-logout-with-node-js/69412>\
**Category:** Get Help\
**Tags:** api, auth0\
**Created:** [September 10, 2021, 6:35am UTC](https://community.auth0.com/t/auth0-custom-logout-with-node-js/69412 "2021-09-10T06:35:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xeniadev](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/xeniadev/32/31635_2.png) [@xeniadev](https://community.auth0.com/u/xeniadev)\
**Post date:** [September 10, 2021, 6:35am UTC](https://community.auth0.com/t/auth0-custom-logout-with-node-js/69412/1 "2021-09-10T06:35:08Z")

</div>

I am using custom login with auth0 in node js. please help me out how can we do custom logout with that.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [September 10, 2021, 10:22pm UTC](https://community.auth0.com/t/auth0-custom-logout-with-node-js/69412/3 "2021-09-10T22:22:50Z")

</div>

Hi @xeniadev,

Welcome to the Auth0 Community!

To customize the logout flow, I recommend passing a `returnTo` parameter to redirect the user to your target URL after logout. [https://auth0.com/docs/login/logout/redirect-users-after-logout](https://auth0.com/docs/login/logout/redirect-users-after-logout)

Doing so will allow you to accomplish a customized logout flow.

Please let me know if you have any questions. I would be happy to help.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [September 30, 2021, 4:33pm UTC](https://community.auth0.com/t/auth0-custom-logout-with-node-js/69412/4 "2021-09-30T16:33:27Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
