您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }