Bitwarden client applications (web, browser extension, desktop, and cli)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
✨ Audrey ✨ 3521c54672
[PM-14964] revert passphrase minimum (#12019)
1 year ago
..
src [PM-14964] revert passphrase minimum (#12019) 1 year ago
jest.config.js [PM-7289] implement generator libraries (#9549) 2 years ago
package.json [PM-9008] factor generator-extensions into separate libraries (#9724) 2 years ago
readme.md [PM-8282] credential generator (#11398) 1 year ago
tsconfig.json [PM-7289] Create generator libraries (#9432) 2 years ago
tsconfig.spec.json [PM-7289] Create generator libraries (#9432) 2 years ago

readme.md

Using generator components

The components within this module require the following import.

import { GeneratorModule } from "@bitwarden/generator-components";

The credential generator provides access to all generator features.

<!-- Bound to active user -->
<tools-credential-generator />

<!-- Bound to a specific user -->
<tools-credential-generator [user-id]="userId" />

<!-- receive updates when a credential is generated.
     `$event` is a `GeneratedCredential`.
-->
<tools-credential-generator (onGenerated)="eventHandler($event)" />

Specialized components are provided for username and password generation. These components support the same properties as the credential generator.

<tools-password-generator [user-id]="userId" (onGenerated)="eventHandler($event)" />
<tools-username-generator [user-id]="userId" (onGenerated)="eventHandler($event)" />

The emission behavior of onGenerated varies according to credential type. When a credential supports immediate execution, the component automatically generates a value and emits from onGenerated. An additional emission occurs each time the user changes a setting. Users may also request a regeneration.

When a credential does not support immediate execution, then onGenerated fires only when the user clicks the "generate" button.