Skip to main content

LogoutService

Properties

(Mandatory properties are in bold)
PropertiesTypeDescription
authServicedefault
callSagacallSaga(sagaName: string,args: any[]): void
constructornew LogoutService(notificationService: default,authService: default)
contextdefault
logoutlogout(onError: ErrorCallback,onSuccess: SuccessCallback,identity: string): voidLogout the user or redirect to an external logout page
notificationServicedefault
onErroronError(error: default): voidInform the user if there is an error
onSuccessonSuccess(): voidReset the loading and error message after a successful operation
setLoadingsetLoading(loading: boolean): voidInform the user if there is a loading task
stateLogoutState
successLogoutsuccessLogout(onError: ErrorCallback,onSuccess: SuccessCallback,identity: string): void