mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 01:03:35 +00:00
sso support (#127)
* support for sso * created master password boolean * resetMasterPassword flows * throw on bad ctor for token request
This commit is contained in:
@@ -89,6 +89,14 @@ export class Utils {
|
||||
}
|
||||
}
|
||||
|
||||
static fromBufferToUrlB64(buffer: ArrayBuffer): string {
|
||||
const output = this.fromBufferToB64(buffer)
|
||||
.replace(/\+/g, '-')
|
||||
.replace(/\//g, '_')
|
||||
.replace(/=/g, '');
|
||||
return output;
|
||||
}
|
||||
|
||||
static fromBufferToUtf8(buffer: ArrayBuffer): string {
|
||||
if (Utils.isNode || Utils.isNativeScript) {
|
||||
return Buffer.from(buffer).toString('utf8');
|
||||
|
||||
Reference in New Issue
Block a user