mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-05-13 20:05:57 +01:00
* Pass user email to query feedback AB#2501550 * Await page.frame * Make contact no by default * Add hook to check if it sohuld render the modal in the main component
15 lines
429 B
TypeScript
15 lines
429 B
TypeScript
import { userContext } from "../UserContext";
|
|
import { decryptJWTToken } from "./AuthorizationUtils";
|
|
|
|
export const getFullName = (): string => {
|
|
const { authorizationToken } = userContext;
|
|
const { name } = decryptJWTToken(authorizationToken);
|
|
return name;
|
|
};
|
|
|
|
export const getUserEmail = (): string => {
|
|
const { authorizationToken } = userContext;
|
|
const { upn } = decryptJWTToken(authorizationToken);
|
|
return upn;
|
|
};
|