isUserEnrolled
In order to perform mobile authentication a user must be enrolled. This convenience method checks whether a user is enrolled for mobile authentication. Therefore, you don't have to keep track of this on your own.
![copy link to clipboard](../../../../../theme/img/icon-link.svg)
onegini.mobileAuth.isUserEnrolled
This function checks whether the given user is enrolled for mobile authentication.
- Requires an object with a
profileId
:
Property | Default | Description |
---|---|---|
profileId |
- | A profile ID you want to check |
Example enrollment check for a logged in user:
The error callback contains an object with the following properties:
Property | Example | Description |
---|---|---|
code |
8000 | The error code |
description |
"Onegini: Internal plugin error" | Human readable error description |