Analytics has not been configured
See original GitHub issueDescribe the bug When using an oauth configured auth(), it fires this exception. It was working fine a few days ago.
To Reproduce Steps to reproduce the behavior:
- aws-amplify@^1.1.26
- configure it with oauth for a federatedSignIn
- do the federatedSignIn, get access_token
- See error
Expected behavior Using the access_token from URL, automatically creating a session.
Desktop (please complete the following information):
- OS: Windows
- Browser: Chrome
- Version: 1.1.26
Sample code
// REQUIRED only for Federated Authentication - Amazon Cognito Identity Pool ID
identityPoolId: environment.cognito.identityPoolId,
// REQUIRED - Amazon Cognito Region
region: environment.cognito.region,
// OPTIONAL - Amazon Cognito User Pool ID
userPoolId: environment.cognito.userPoolId,
// OPTIONAL - Amazon Cognito Web Client ID (26-char alphanumeric string)
userPoolWebClientId: environment.cognito.userPoolWebClientId,
// OPTIONAL - Enforce user authentication prior to accessing AWS resources or not
mandatorySignIn: true,
oauth: {
domain: "xxxxxxxxx.auth.eu-west-1.amazoncognito.com",
scope: ['email', 'profile', 'openid'],
redirectSignIn: encodeURIComponent(window.location.href),
redirectSignOut: encodeURIComponent(window.location.href),
responseType: 'token',
options: {
AdvancedSecurityDataCollectionFlag: false
}
}
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7
Top Results From Across the Web
[GA4] Troubleshoot tag setup on your website - Analytics Help
You may not see data from your website in Google Analytics for the following reasons: ... The GA4 Configuration tag has not been...
Read more >Why Your Google Analytics Isn't Working (and How to Fix It)
1. Your Google Analytics tracking code is not implemented correctly · 2. You're not tracking the correct property or view · 3. You've...
Read more >Configure Analytics data collection and usage - Firebase
Configure the use of Analytics data If you have linked your Google Analytics project to an ads account or otherwise enabled an ads...
Read more >Google Analytics not working? Here are 21 ways to fix it
Google Analytics not working? Here are 21 ways to fix it. #1 Delete and Disable the cache #2 Use Google Tag Assistant and...
Read more >29 Common Google Analytics Data Errors And How To Fix Them
Google Analytics data not showing all traffic or no view data? Here's why your data is wrong and how to fix the most...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Found a way to disable Analytics and prevent that exception.
@CaryLandholt your solution rescued me, thanks