-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Labels
pending-maintainer-responseIssue is pending a response from the Amplify team.Issue is pending a response from the Amplify team.questionGeneral questionGeneral question
Description
Before opening, please confirm:
- I have searched for duplicate or closed issues and discussions.
- I have read the guide for submitting bug reports.
- I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
Amplify APIs
Authentication
Amplify Version
v6
Amplify Categories
No response
Backend
None
Environment information
# Put output below this line
Describe the bug
When trying to call fetchAuthSession or user attributes or get current user in the frontend (to see if user exists before signing them in, nothing happens. It just hangs there with no message or network call & the console statements I put right after it do not hit (but the ones before do). I am using await & I have properly configured my Amplify because other commands like confirmsignup work (make the network call & return a response)
A simple example is the following:
console.log('hit1')
console.log(await fetchUserAttributes());
console.log('hit2')
Expected behavior
Expect network call to be made then to get error because no user found to catch.
Reproduction steps
- Install aws amplify and aws-amplify-auth
- set up amplify using .configure
- make calls to these functions
Code Snippet
// Put your code below this line.
Log output
// Put your logs below this line
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
wand2016
Metadata
Metadata
Assignees
Labels
pending-maintainer-responseIssue is pending a response from the Amplify team.Issue is pending a response from the Amplify team.questionGeneral questionGeneral question