mirror of
https://github.com/bitwarden/jslib
synced 2025-12-12 14:23:20 +00:00
Use UrlB64 encoding for auth-email header (#450)
This commit is contained in:
@@ -159,6 +159,10 @@ export class Utils {
|
||||
}
|
||||
}
|
||||
|
||||
static fromUtf8ToUrlB64(utfStr: string): string {
|
||||
return Utils.fromBufferToUrlB64(Utils.fromUtf8ToArray(utfStr));
|
||||
}
|
||||
|
||||
static fromB64ToUtf8(b64Str: string): string {
|
||||
if (Utils.isNode || Utils.isNativeScript) {
|
||||
return Buffer.from(b64Str, 'base64').toString('utf8');
|
||||
|
||||
Reference in New Issue
Block a user