diff --git a/src/flow/pkce.html b/src/flow/pkce.html
index ce9a605..79782a9 100644
--- a/src/flow/pkce.html
+++ b/src/flow/pkce.html
@@ -128,8 +128,8 @@
const data = encoder.encode(verifier);
const digest = await crypto.subtle.digest('SHA-256', data);
const base64UrlEncoded = btoa(String.fromCharCode(...new Uint8Array(digest)))
- .replace('+', '-')
- .replace('/', '_')
+ .replaceAll('+', '-')
+ .replaceAll('/', '_')
.replace(/=+$/, '');
$('#codeChallenge').val(base64UrlEncoded);