- Which SDK this is regarding: e.g. auth0-ios
- SDK Version: 1.0
I’m considering implementing Sign In with Apple in my app.
My app uses a browser-based login flow.
I’m planning to implement Sign In with Apple using this flow.
When I was checking the contents of the above URL, there was a description in the Logout section that the following is required when logging out for iOS Native apps.
Add Sign In with Apple to Native iOS Apps
・Revoke the Auth0 Refresh Token
・Delete the Auth0 refresh token stored in the iCloud Keychain
・Delete the Apple user identifier stored in the iCloud keychain
①I am using the following function to logout my app, but is Delete~in the iCloud Keychain taken into account
■Login
let credentialsManager = CredentialsManager(authentication: Auth0.authentication())
Auth0
.webAuth()
.scope("openid profile offline_access")
.audience("https://YOUR_DOMAIN/userinfo")
.start { result in
switch result {
case .failure(let error):
// Handle the error
print("Error: \(error)")
case .success(let credentials):
// Auth0 will automatically dismiss the login page
// Store the credentials
self.credentialsManager.store(credentials: credentials)
}
}
■Logout
Auth0
.webAuth()
.clearSession(federated: false) { result in
if result {
// Session cleared
}
}
②If this is not taken into account, please let us know what kind of implementation is needed.