Use base64url encoding for encrypted username
This commit is contained in:
parent
f77f9165e1
commit
09fc0d690b
4 changed files with 10 additions and 2 deletions
|
@ -25,6 +25,10 @@ export class Bytes {
|
|||
return Buffer.from(data).toString('base64');
|
||||
}
|
||||
|
||||
public toBase64url(data: Uint8Array): string {
|
||||
return Buffer.from(data).toString('base64url');
|
||||
}
|
||||
|
||||
public toHex(data: Uint8Array): string {
|
||||
return Buffer.from(data).toString('hex');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue