Files
jitsi-meet/react/features/base/jwt/actions.ts
2022-09-23 11:13:32 +03:00

18 lines
356 B
TypeScript

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|undefined)
* }}
*/
export function setJWT(jwt?: string) {
return {
type: SET_JWT,
jwt
};
}