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.

actions.ts 356B

1234567891011121314151617
  1. import { SET_JWT } from './actionTypes';
  2. /**
  3. * Stores a specific JSON Web Token (JWT) into the redux store.
  4. *
  5. * @param {string} [jwt] - The JSON Web Token (JWT) to store.
  6. * @returns {{
  7. * type: SET_TOKEN_DATA,
  8. * jwt: (string|undefined)
  9. * }}
  10. */
  11. export function setJWT(jwt?: string) {
  12. return {
  13. type: SET_JWT,
  14. jwt
  15. };
  16. }