Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const logout = (userManager, dispatch) => async () => {
try {
oidcLog.info('Logout successfull');
await logoutUser(userManager);
} catch (error) {
onError(dispatch)(error);
}
};
export const login = (userManager, dispatch, location) => async () => {