mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Pass signed user_hash to Intercom via Rudderstack (#63921)
* move analytics identifiers to backend
* implement hash function
* grab secret from env
* expose and retrieve intercom secret from config
* concat email with appUrl to ensure uniqueness
* revert to just using email
* Revert "revert to just using email"
This reverts commit 8f10f9b1bc.
* add docstring
This commit is contained in:
@@ -96,6 +96,16 @@ export type OAuth =
|
||||
*/
|
||||
export type OAuthSettings = Partial<Record<OAuth, { name: string; icon?: IconName }>>;
|
||||
|
||||
/**
|
||||
* Information needed for analytics providers
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
export interface AnalyticsSettings {
|
||||
identifier: string;
|
||||
intercomIdentifier?: string;
|
||||
}
|
||||
|
||||
/** Current user info included in bootData
|
||||
*
|
||||
* @internal
|
||||
@@ -119,6 +129,7 @@ export interface CurrentUserDTO {
|
||||
locale: string;
|
||||
language: string;
|
||||
permissions?: Record<string, boolean>;
|
||||
analytics: AnalyticsSettings;
|
||||
|
||||
/** @deprecated Use theme instead */
|
||||
lightTheme: boolean;
|
||||
|
||||
@@ -38,6 +38,7 @@ export * from './geometry';
|
||||
export { isUnsignedPluginSignature } from './pluginSignature';
|
||||
export type {
|
||||
CurrentUserDTO,
|
||||
AnalyticsSettings,
|
||||
BootData,
|
||||
OAuth,
|
||||
OAuthSettings,
|
||||
|
||||
Reference in New Issue
Block a user