mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 14:53:33 +00:00
Auth/PM-5099 Ensure consistent casing of email used for fingerprint generation in Auth Requests (#8571)
* Created method for handilng email-address-based fingerprint. * Added test for new method. * Added returns to annotation
This commit is contained in:
@@ -96,4 +96,12 @@ export abstract class AuthRequestServiceAbstraction {
|
||||
* @remark We should only be receiving approved push notifications to prevent enumeration.
|
||||
*/
|
||||
abstract sendAuthRequestPushNotification: (notification: AuthRequestPushNotification) => void;
|
||||
|
||||
/**
|
||||
* Creates a dash-delimited fingerprint for use in confirming the `AuthRequest` between the requesting and approving device.
|
||||
* @param email The email address of the user.
|
||||
* @param publicKey The public key for the user.
|
||||
* @returns The dash-delimited fingerprint phrase.
|
||||
*/
|
||||
abstract getFingerprintPhrase(email: string, publicKey: Uint8Array): Promise<string>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user