# How can I implement logout functionality in Gradio?

**URL:** <https://discuss.huggingface.co/t/how-can-i-implement-logout-functionality-in-gradio/50214>\
**Category:** 🔒 Gradio\
**Created:** [August 10, 2023, 3:48am UTC](https://discuss.huggingface.co/t/how-can-i-implement-logout-functionality-in-gradio/50214 "2023-08-10T03:48:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Buddies](https://avatars.discourse-cdn.com/v4/letter/b/ee59a6/32.png) [@Buddies](https://discuss.huggingface.co/u/Buddies)\
**Post date:** [August 10, 2023, 3:48am UTC](https://discuss.huggingface.co/t/how-can-i-implement-logout-functionality-in-gradio/50214/1 "2023-08-10T03:48:49Z")

</div>

Hello everyone,

I hope you’re all doing well. I have a question regarding the Gradio library’s functionality, specifically related to implementing a logout feature. Currently, I’m using the library’s login feature with the following code example:

```python
demo.launch(auth=("username", "password"))

```

This serves as an example for the login functionality. However, I’m interested in incorporating a logout feature as well. I’m wondering how I can go about implementing this in my Gradio application. Any guidance or code examples on how to achieve this would be greatly appreciated.

Thank you in advance for your assistance!

Best regards,

---

<div class="post-metadata">

**Author:** ![abidlabs](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/abidlabs/32/21878_2.png) [@abidlabs](https://discuss.huggingface.co/u/abidlabs)\
**Post date:** [August 15, 2023, 4:14pm UTC](https://discuss.huggingface.co/t/how-can-i-implement-logout-functionality-in-gradio/50214/2 "2023-08-15T16:14:21Z")

</div>

Hi @Buddies, we don’t currently support this, but we are working on it. Please follow this issue: [Request for Adding Logout Functionality · Issue #5163 · gradio-app/gradio · GitHub](https://github.com/gradio-app/gradio/issues/5163)
