Type Alias: SignOut()
Sign out from Mimeeq
Uses signOut
from Auth
module from @aws-amplify/auth
package. Clears sessionStorage
Usage
mimeeqAuth.authorization.signOut().then(() => {
window.location.reload();
});
Returns
A promise resolved if success. On success it return boolean if failure object with error data
Fires
Mimeeq Refresh Session
Fires
@mimeeq#mimeeq-user-signed-out