Closed ghariosk closed 5 years ago
@ghariosk - We merged a PR last week into our unstable branch which I think might address this issue. Could you try it with npm i aws-amplify@unstable
?
Just tried it and works perfectly now! Thanks 👍
I'm on version 2.1.0
and still experiencing this issue. I'm using the withOAuth
HOC from aws-amplify-react
in web React though.
I'm also having this problem endpoint seems to be called twice. Following examples from here. https://docs.amplify.aws/ui/auth/authenticator/q/framework/react#hiding-form-fields
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server *-help
channels or Discussions for those types of questions.
Describe the bug Using react-native I am wrapping my App component with with0Auth exactly like the example provided in the documentation. I am getting an error of invalid request. Upon inspecting the debug log it seems the token endpoint is being called twice, the first time with the code verifier and the second time without and the second time is is returning invalid request. I am using expo. I know I could use Implicit grant and response_type = token but aws strongly recommends against it on mobile. Note: I am able to get the response with postman using the first token endpoint call.
To Reproduce Steps to reproduce the behavior:
Expected behavior Token Id and refresh token being returned
Screenshots
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.
Sample code
my aws-config :
You can turn on the debug mode to provide more info for us by setting window.LOG_LEVEL = 'DEBUG'; in your app.