mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-10 12:02:29 +00:00
20 lines
366 B
JavaScript
20 lines
366 B
JavaScript
// @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|undefined)
|
|
* }}
|
|
*/
|
|
export function setJWT(jwt: ?string) {
|
|
return {
|
|
type: SET_JWT,
|
|
jwt
|
|
};
|
|
}
|