mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-20 09:20:16 +00:00
[Query Copilot] Pass user email to query feedback (#1516)
* 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
This commit is contained in:
@@ -6,3 +6,9 @@ export const getFullName = (): string => {
|
||||
const { name } = decryptJWTToken(authorizationToken);
|
||||
return name;
|
||||
};
|
||||
|
||||
export const getUserEmail = (): string => {
|
||||
const { authorizationToken } = userContext;
|
||||
const { upn } = decryptJWTToken(authorizationToken);
|
||||
return upn;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user