Skip to content

Commit 81d006c

Browse files
use window.btoa
1 parent f524c35 commit 81d006c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AzureAppConfigurationImpl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
595595
if (crypto.subtle) {
596596
const hashBuffer = await crypto.subtle.digest("SHA-256", data);
597597
const hashArray = new Uint8Array(hashBuffer);
598-
const base64String = btoa(String.fromCharCode(...hashArray));
598+
const base64String = window.btoa(String.fromCharCode(...hashArray));
599599
const base64urlString = base64String.replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
600600
return base64urlString;
601601
}

0 commit comments

Comments
 (0)