Closed myfoostrong closed 1 year ago
Hi @myfoostrong I just tried this with the most recent Ignite version v8.5.1 and didn't have any issues with the flow you described.
Can you confirm if you are pinned to the version you mentioned or if this issue was just old? I ran into separate issues with the CLI version you mentioned so tried with the most recent.
Also are you still experiencing this?
Yes, I've confirmed everything works smoothly on latest version of Ignite. Closing since it's no longer an issue for me.
I'm not tied to that version, so haven't done any extensive testing to identify the culprit.
Glad to hear it! Thanks for responding
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
Authentication, REST API
Amplify Categories
auth, api
Environment information
Describe the bug
Cognito credentials are not able to be stored/retrieved after a valid authentication in my project, which is based on IgniteCLI 7.10.10. The authentication handshake is successful, but any subsequent calls to the REST API have an invalid authentication header (the credential Access Key ID is
undefined
) which results in a 403 from API gateway.This was working without issue ~1-2 months ago... Have been trying to identify what change was the culprit but no results.
I have tested with a fresh install of Amplify REST API where Guest and Authenticated users were selected, so I can confirm it's not my Amplify project.
I have tested this on a fresh install of React Native 0.68.2, and I can successfully authenticate and call the API without issues.
Expected behavior
Being able to retrieve the stored Cognito credentials A 200 OK Response from API
Reproduction steps
Create new Ignite app, setup and pull Amplify
export default withAuthenticator(App);
Replace the first instruction with
npx react-native init testApp
and it will result in a 200. You can justamplify pull
for the second run to save time.Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response