auth0 / docs

Auth0 documentation
MIT License
367 stars 1.6k forks source link

[Docs] Wrong Java import in code_verifier generation example in PKCE tutorial #10359

Open pochopsp opened 5 months ago

pochopsp commented 5 months ago

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