Closed lin826 closed 5 years ago
@lin826 these two examples (before and after) are identical in the way they work. The current one is just using a shorthand.
In my case, without the specifying raised OPError: invalid_grant (grant request is invalid), while after one work great :)
Maybe you were passing just { codeVerifier }
as a shorthand, which is then obviously a different property. The code functions in both readme examples exactly the same.
Thanks for taking the time to open a PR tho, much appreciated <3
Make sure the string is going to be recognized as
code_verifier
.By running quick start in README.md, the grant failed without this setting.
Example Repo: https://github.com/lin826/auth-toy
Provider Server's Code
Client Server's Code