# Is it feasible to login using WebAuthProvider to login and calling /v2/logout to logout

**URL:** <https://community.auth0.com/t/is-it-feasible-to-login-using-webauthprovider-to-login-and-calling-v2-logout-to-logout/62373>\
**Category:** Get Help\
**Created:** [May 7, 2021, 2:55am UTC](https://community.auth0.com/t/is-it-feasible-to-login-using-webauthprovider-to-login-and-calling-v2-logout-to-logout/62373 "2021-05-07T02:55:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dane](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dane/32/25700_2.png) [@dane](https://community.auth0.com/u/dane)\
**Post date:** [May 7, 2021, 2:55am UTC](https://community.auth0.com/t/is-it-feasible-to-login-using-webauthprovider-to-login-and-calling-v2-logout-to-logout/62373/1 "2021-05-07T02:55:33Z")

</div>

Just a quick question, Is it feasible to perform logout by calling API if I’ve previously logged in using WebAuthProvider while using Android SDK? if so what’s the right way to do it.

- **Android SDK**

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [May 7, 2021, 7:41pm UTC](https://community.auth0.com/t/is-it-feasible-to-login-using-webauthprovider-to-login-and-calling-v2-logout-to-logout/62373/3 "2021-05-07T19:41:32Z")

</div>

Hi @dane,

The SDK provides a logout method, [here is an example](https://auth0.com/docs/quickstart/native/android/00-login#add-logout-to-your-app).

The logout method will navigate to the logout endpoint. Will this work for you?

---

<div class="post-metadata">

**Author:** ![dane](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dane/32/25700_2.png) [@dane](https://community.auth0.com/u/dane)\
**Post date:** [May 7, 2021, 7:59pm UTC](https://community.auth0.com/t/is-it-feasible-to-login-using-webauthprovider-to-login-and-calling-v2-logout-to-logout/62373/4 "2021-05-07T19:59:44Z")

</div>

Hey!

Thanks for the answer, however I’m already using that approach.  
What I’m trying to do is to avoid to see the Logout activity (it’s like a blink for kind of 1 second) the SDK uses. So wondering if there is another way to logout without showing that logout web activity for that second

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [May 7, 2021, 8:06pm UTC](https://community.auth0.com/t/is-it-feasible-to-login-using-webauthprovider-to-login-and-calling-v2-logout-to-logout/62373/5 "2021-05-07T20:06:31Z")

</div>

It appears that it isn’t possible to avoid the redirect to log out.

---

<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:** [June 1, 2021, 5:07pm UTC](https://community.auth0.com/t/is-it-feasible-to-login-using-webauthprovider-to-login-and-calling-v2-logout-to-logout/62373/6 "2021-06-01T17:07:12Z")

</div>

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