Hi @anujchandel
Welcome to the Auth0 Community!
I am sorry about the delayed response to your post.
If you are still having issues, I would recommend to review the following posts:
- next.js - Authorisation Code Flow in NextJS - how to pass PKCE code_verifier to the authorization callback? - Stack Overflow
- python - Auth0 PKCE Grant Can't verify code verifier - Stack Overflow
- “Failed to verify code verifier” Error after Users Authenticates
- Add Login Using the Authorization Code Flow with PKCE
You might not be modifying the base64 string correctly. I recommend using the following:
.replace('+', '-')
.replace('/', '-')
.replace('=', '')
.encode('utf-8')
If you are still having issues after reviewing the above posts or you found a solution of your own, please feel free to let me know by leaving a reply!
Kind Regards,
Nik