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.js 366B

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