Guardian SDK and checking if an enrolment is valid/exists

Overview

I am reaching out as we want to know if there is an existing method available in Auth0 Guardian Android and iOS SDK that can be used to determine if a user enrolment is still valid/exists?
Scenario:
- If our app calls the SDK unenrol method to delete user enrolment, SDK Unenroll call went through to the backend server but the client app received a failure response due to bad network/loss of network. In this case, is there a way to check if existing enrolment on device is still valid on auth0 backend?

Solution

The SDK itself does not have methods to check the status of existing enrollments. If there was a network failure from the mobile app, they can retry the operation.

Alternatively, they can use the Auth0 APIs directly to retrieve the authenticator (device account, enrollment, authenticator, and authentication method, in this case, correspond to the same concept).

Relevant APIs:

https://auth0.com/docs/api/authentication#list-authenticators (user-level. This can be used from the mobile app)

Management APIs (can only be used by admins with a confidential client:

https://auth0.com/docs/api/management/v2#!/Guardian/get_enrollments_by_id

https://auth0.com/docs/api/management/v2#!/Users/get_authentication_methods

https://auth0.com/docs/api/management/v2#!/Users/get_authentication_methods_by_authentication_method_id

Recommended content

No recommended content found...