We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f316e83 commit 93334cdCopy full SHA for 93334cd
FUNCTIONS/base64_url_decode.sql
@@ -2,5 +2,5 @@ CREATE OR REPLACE FUNCTION webauthn.base64_url_decode(text)
2
RETURNS bytea
3
IMMUTABLE
4
LANGUAGE sql AS $$
5
-SELECT decode(rpad(replace(replace($1,'-','+'),'_','/'),length($1) + (4 - length($1) % 4) % 4, '='),'base64')
+SELECT decode(rpad(translate($1,'-_','+/'),length($1) + (4 - length($1) % 4) % 4, '='),'base64')
6
$$;
0 commit comments