Files
planka/client/src/entry-actions/login.js

25 lines
473 B
JavaScript
Raw Normal View History

2022-08-04 13:31:14 +02:00
import EntryActionTypes from '../constants/EntryActionTypes';
const authenticate = (data) => ({
type: EntryActionTypes.AUTHENTICATE,
payload: {
data,
},
});
2023-10-17 19:18:19 +02:00
const authenticateWithOidc = () => ({
type: EntryActionTypes.WITH_OIDC_AUTHENTICATE,
payload: {},
});
2022-08-04 13:31:14 +02:00
const clearAuthenticateError = () => ({
type: EntryActionTypes.AUTHENTICATE_ERROR_CLEAR,
payload: {},
});
export default {
authenticate,
2023-10-17 19:18:19 +02:00
authenticateWithOidc,
2022-08-04 13:31:14 +02:00
clearAuthenticateError,
};