logout
For security reasons, it is always advisable to explicitly logout a user. The Onegini Cordova Plugin exposes the following function to do so.
![copy link to clipboard](../../../../../theme/img/icon-link.svg)
onegini.user.logout
- Logs out the currently authenticated 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 |