1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 01:33:33 +00:00

[PM-5972] add subaddress generator strategy (#7897)

This commit is contained in:
✨ Audrey ✨
2024-02-12 09:20:55 -05:00
committed by GitHub
parent 746bf0a474
commit c41dce8c63
6 changed files with 169 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
/** Settings supported when generating an email subaddress */
export type SubaddressGenerationOptions = {
type?: "random" | "website-name";
email?: string;
};
/** The default options for email subaddress generation. */
export const DefaultSubaddressOptions: Partial<SubaddressGenerationOptions> = Object.freeze({
type: "random",
});