# Clarify native iOS logout steps

**URL:** <https://community.auth0.com/t/clarify-native-ios-logout-steps/147538>\
**Category:** Get Help\
**Tags:** application, sso\
**Created:** [September 19, 2024, 11:15am UTC](https://community.auth0.com/t/clarify-native-ios-logout-steps/147538 "2024-09-19T11:15:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattn](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mattn/32/60295_2.png) [@mattn](https://community.auth0.com/u/mattn)\
**Post date:** [September 19, 2024, 11:15am UTC](https://community.auth0.com/t/clarify-native-ios-logout-steps/147538/1 "2024-09-19T11:15:38Z")

</div>

I’ve implemented native iOS sign-in for a mobile app, following the documentation here: [Add Sign In with Apple to Native iOS Apps](https://auth0.com/docs/authenticate/identity-providers/social-identity-providers/apple-native)

Under the “Logout” section, it mentions the steps needed for iOS native, logout as it isn’t leveraging the browser-based logout flow:

- [Revoke the Auth0 Refresh Token](https://auth0.com/docs/api/authentication#revoke-refresh-token)
- Delete the Auth0 refresh token stored in the iCloud Keychain
- Delete the Apple user identifier stored in the iCloud keychain

For the first one, I’ve tried calling the `/oauth/revoke` endpoint linked, but it returns `401`. I tried to find the setting to allow an auth method of `none` for the token endpoint, as suggested in the API docs, but this setting doesn’t appear to be available in the Application settings UI. My application is of type “Native”.

For the other two, I’ve been looking at the [Auth0 Swift library](https://github.com/auth0/Auth0.swift) but haven’t found a clear way to remove the refresh token and other data from the iCloud keychain.

---

<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:** [April 2, 2025, 7:18pm UTC](https://community.auth0.com/t/clarify-native-ios-logout-steps/147538/3 "2025-04-02T19:18:52Z")

</div>

Hi @mattn,

Welcome to the Auth0 Community!

To revoke the refresh token check the body parameters and make sure all the required parameters are being used and are correct.

> **[Auth0 Authentication API v2](https://auth0.com/docs/api/authentication/revoke-refresh-token/revoke-refresh-token)**

To delete the refresh token stored in Apple’s Keychain use the `credentialsManager.clear()` method as presented in this Github readme.

> <https://github.com/auth0/Auth0.swift/blob/master/EXAMPLES.md#clear-stored-credentials>

If you have any other question feel free to reach out.

Have a good one,  
Vlad

---

<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:** [April 16, 2025, 7:18pm UTC](https://community.auth0.com/t/clarify-native-ios-logout-steps/147538/4 "2025-04-16T19:18:57Z")

</div>

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