405 when running client.exchangeOAuthCodeForAccessTokenUsingPKCE
-
I did the following tutorials using fastify.
https://fusionauth.io/docs/v1/tech/5-minute-setup-guide/The login itself is working fine, but when I run client.exchangeOAuthCodeForAccessTokenUsingPKCE I get a 405 error.
There is no problem if it is executed by express as in the sample, but it fails when using fastify.
2021-03-18 4:26:15.120 AM WARN org.primeframework.mvc.action.DefaultActionMappingWorkflow - The action class [io.fusionauth.app.action.oauth2.TokenAction] does not have a valid execute method for the HTTP method [GET]
ported over from https://github.com/FusionAuth/fusionauth-typescript-client/issues/45
-
For anybody having this issue, it turned out I had written my URL wrong:
http://company.fusionauth.io
for example instead ofhttps://company.fusionauth.io
. The redirect to https:// caused the error. -
This post is deleted! -
This post is deleted!