I need to generate a PKCE Code ( verifier and challenge ) in Xano since my LowCode Frontend cant do SHA256 hashing.
I generate the code-verifier with the generate password function of xano which works really well.
The only downside is I cant have a variable length. The verifier should be between 43 and 128 chars. If I could put a randint(43,128) function in the "charackter_count" field, that would be nice.
To hash the verifier and encode it properly I used the create variable function with filters. First the SHA256 and then the base64_encode_urlsafe.
Now the results are weird. I always get a ".." at the end.
Why is that?
Info: https://www.rfc-editor.org/rfc/rfc7636#section-4.6