Skip to content

resetAuth

Sahri Riza Umami edited this page Dec 6, 2016 · 6 revisions

Logs out user.
If force == false, begins to perform soft log out, returns authStateLoggingOut after completion.
If force == true then succeeds almost immediately without cleaning anything at the server, but returns error with code 401 and description "Unauthorized".

  • force If true, just delete all local data. Session will remain in list of active sessions.
resetAuth()
resetAuth(force)

Example:
Soft log out from currently logged in user.

resetAuth()

Log out from currently logged in user and delete all of its local data.

resetAuth(force)

Test script
Frequently Asked Questions
The Functions

Clone this wiki locally