Closed adatzer closed 7 months ago
When decoding from base64url we take into account the case where 4 - (str.length % 4) is equal to 3. However, since str.length % 4 cannot be equal to 1 in base 64, this case cannot happen and could be removed.
4 - (str.length % 4)
3
str.length % 4
1
When decoding from base64url we take into account the case where
4 - (str.length % 4)
is equal to3
. However, sincestr.length % 4
cannot be equal to1
in base 64, this case cannot happen and could be removed.