# A0AuthenticationAPI How to logout on iOS SDK?

**URL:** <https://community.auth0.com/t/a0authenticationapi-how-to-logout-on-ios-sdk/7229>\
**Category:** Get Help\
**Tags:** tier1, a0authenticationapi, logout, ios\
**Created:** [June 23, 2017, 5:26am UTC](https://community.auth0.com/t/a0authenticationapi-how-to-logout-on-ios-sdk/7229 "2017-06-23T05:26:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandy](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@sandy](https://community.auth0.com/u/sandy)\
**Post date:** [June 23, 2017, 5:26am UTC](https://community.auth0.com/t/a0authenticationapi-how-to-logout-on-ios-sdk/7229/1 "2017-06-23T05:26:36Z")

</div>

What is the method to logout? I’ve tried looking through all the documentation but I’m not finding anything.

A0AuthenticationAPI - doesn’t give me a logout method – only see a login method.

What is the correct method to logout on the iOS SDK?

---

<div class="post-metadata">

**Author:** ![swapna.dixit](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@swapna.dixit](https://community.auth0.com/u/swapna.dixit)\
**Post date:** [August 17, 2017, 6:51pm UTC](https://community.auth0.com/t/a0authenticationapi-how-to-logout-on-ios-sdk/7229/2 "2017-08-17T18:51:38Z")

</div>

Have you tried clearing the Keychain?  
The following docs could be helpful:

> **[Logout](https://auth0.com/docs/authenticate/login/logout)**
>
> Describes how logout works with Auth0.

[https://auth0.com/docs/quickstart/native/ios-objc/03-user-sessions#on-logout-clear-the-keychain](https://auth0.com/docs/quickstart/native/ios-objc/03-user-sessions#on-logout-clear-the-keychain)

> **[Auth0 iOS / macOS SDK Quickstarts: Login](https://auth0.com/docs/quickstart/native/ios-swift)**
>
> This guide demonstrates how to integrate Auth0 with any new or existing iOS / macOS application using the Auth0.swift SDK.

---

<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:** [March 2, 2018, 5:54am UTC](https://community.auth0.com/t/a0authenticationapi-how-to-logout-on-ios-sdk/7229/3 "2018-03-02T05:54:54Z")

</div>


