jiti-meet/react/features/jwt/actions.js

20 lines
354 B
JavaScript
Raw Normal View History

2017-04-21 10:00:50 +00:00
/* @flow */
import { SET_JWT } from './actionTypes';
/**
* Stores a specific JSON Web Token (JWT) into the redux store.
*
* @param {string} jwt - The JSON Web Token (JWT) to store.
* @returns {{
* type: SET_TOKEN_DATA,
* jwt: string
* }}
*/
export function setJWT(jwt: string) {
return {
type: SET_JWT,
jwt
};
}