authService | default | |
callSaga | callSaga(sagaName: string,args: any[]): void | |
constructor | new LogoutService(notificationService: default,authService: default) | |
context | default | |
logout | logout(onError: ErrorCallback,onSuccess: SuccessCallback,identity: string): void | Logout the user or redirect to an external logout page |
notificationService | default | |
onError | onError(error: default): void | Inform the user if there is an error |
onSuccess | onSuccess(): void | Reset the loading and error message after a successful operation |
setLoading | setLoading(loading: boolean): void | Inform the user if there is a loading task |
state | LogoutState | |
successLogout | successLogout(onError: ErrorCallback,onSuccess: SuccessCallback,identity: string): void | |