Files
jitsi-meet/react/features/base/jwt/actions.ts
Дамян Минков 96d02e8484 feat(authentication): Inline authentication for web
* fix(meeting_id): Depends on jitsi_session(uses session.user_region).

* feat(authentication): A static page that can be used with some auth providers like keycloak.

* fix(authentication): Implements inline authentication.

squash: Adds refresh token use when refresh token is needed on connection resuming.
squash: Fix bugs and move to PKCE flow.

* squash: Adds nonce verification.

* squash: Drops the closing logic.

* squash: Replace resuming event with CONNECTION_TOKEN_EXPIRED one.

* squash: Fixes comments.

* squash: Make sure we use tokenAuthUrl only when it is set and is not jaas.

* squash: Move CONNECTION_TOKEN_EXPIRED to web only middleware as it uses web only logic for now.

* squash: Fix comments.
2026-02-23 13:12:37 -06:00

56 lines
1.3 KiB
TypeScript

import { SET_DELAYED_LOAD_OF_AVATAR_URL, SET_JWT, SET_KNOWN_AVATAR_URL } from './actionTypes';
/**
* Sets an avatar URL for delayed loading.
*
* @param {string} avatarUrl - The avatar URL to set for delayed loading.
* @returns {{
* type: SET_DELAYED_LOAD_OF_AVATAR_URL,
* avatarUrl: string
* }}
*/
export function setDelayedLoadOfAvatarUrl(avatarUrl?: string) {
return {
type: SET_DELAYED_LOAD_OF_AVATAR_URL,
avatarUrl
};
}
/**
* Stores a specific JSON Web Token (JWT) into the redux store.
*
* @param {string} [jwt] - The JSON Web Token (JWT) to store.
* @param {string} idToken - The ID Token to store.
* @param {string} refreshToken - The Refresh Token to store.
* @returns {{
* type: SET_JWT,
* jwt: (string|undefined),
* idToken: (string|undefined),
* refreshToken: (string|undefined)
* }}
*/
export function setJWT(jwt?: string, idToken?: string, refreshToken?: string) {
return {
type: SET_JWT,
jwt,
idToken,
refreshToken
};
}
/**
* Sets a known avatar URL.
*
* @param {string} avatarUrl - The avatar URL to set as known.
* @returns {{
* type: SET_KNOWN_AVATAR_URL,
* avatarUrl: string
* }}
*/
export function setKnownAvatarUrl(avatarUrl: string) {
return {
type: SET_KNOWN_AVATAR_URL,
avatarUrl
};
}