Skip to main content

Type Alias: SignOut()

SignOut: () => Promise<boolean | AuthError>

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

Promise<boolean | AuthError>

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