Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / packages / shared / lib / keys / userKeys.ts
blobe9466ad20e39ff37336536de2885a6975a9831c7
1 import type { KeyGenConfig, KeyGenConfigV6 } from '../interfaces';
2 import type { GenerateAddressKeyArguments } from './addressKeys';
3 import { generateAddressKey } from './addressKeys';
5 export const USER_KEY_USERID = 'not_for_email_use@domain.tld';
7 export const generateUserKey = async <C extends KeyGenConfig | KeyGenConfigV6>(args: Omit<GenerateAddressKeyArguments<C>, 'email' | 'name'>) => {
8     return generateAddressKey({ email: USER_KEY_USERID, ...args });
9 };