In the "Call Your API Using the Authorization Code Flow with PKCE"tutorial there are several code snippets to explain how to generate a code_verifier for PKCE, but the Java one indicates a wrong import. The code uses the following instruction Base64.getUrlEncoder().withoutPadding().encodeToString(code)
which is not in org.apache.commons.codec.binary.Base64 as stated but instead is in java.util.Base64
Description
In the "Call Your API Using the Authorization Code Flow with PKCE" tutorial there are several code snippets to explain how to generate a code_verifier for PKCE, but the Java one indicates a wrong import. The code uses the following instruction
Base64.getUrlEncoder().withoutPadding().encodeToString(code)
which is not in org.apache.commons.codec.binary.Base64 as stated but instead is in java.util.Base64