You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

loginActionConstants.js 1.1KB

123456789101112131415161718192021222324252627282930
  1. import {
  2. createClearType,
  3. createErrorType,
  4. createFetchType,
  5. createLoadingType,
  6. createSuccessType,
  7. createSubmitType,
  8. } from '../actionHelpers';
  9. export const LOGIN_USER_SCOPE = 'LOGIN_USER';
  10. export const LOGIN_USER_FETCH = createFetchType(LOGIN_USER_SCOPE);
  11. export const LOGIN_USER_SUCCESS = createSuccessType(LOGIN_USER_SCOPE);
  12. export const LOGIN_USER_ERROR = createErrorType(LOGIN_USER_SCOPE);
  13. export const CLEAR_LOGIN_USER_ERROR = createClearType(
  14. `${LOGIN_USER_SCOPE}_ERROR`,
  15. );
  16. export const LOGIN_USER_LOADING = createLoadingType(LOGIN_USER_SCOPE);
  17. export const UPDATE_USER_JWT_TOKEN = 'UPDATE_USER_JWT_TOKEN';
  18. export const RESET_LOGIN_STATE = 'RESET_LOGIN_STATE';
  19. export const AUTHENTICATE_USER = 'AUTHENTICATE_USER';
  20. export const LOGOUT_USER = 'LOGOUT_USER';
  21. export const REFRESH_TOKEN = 'REFRESH_TOKEN';
  22. const GENERATE_TOKEN_SCOPE = 'GENERATE_TOKEN';
  23. export const GENERATE_TOKEN = createSubmitType(GENERATE_TOKEN_SCOPE);
  24. export const GENERATE_TOKEN_SUCCESS = createSuccessType(GENERATE_TOKEN_SCOPE);
  25. export const GENERATE_TOKEN_ERROR = createErrorType(GENERATE_TOKEN_SCOPE);