Change pin
Changing PIN
The Onegini Cordova plugin exposes a function onegini.user.changePin to allow the currently logged in user to change their PIN. The user is first required to provide their current PIN, before being allowed to create the new PIN. The same familiar UI handler methods onPinRequest
and onCreatePinRequest
must therefore be implemented.
Example code to change PIN of currently logged in user:
Note that the PIN entered by the user should not be stored on the device or elsewhere in any shape or form. The Onegini Cordova plugin takes care of this for you in a secure manner.