Closed khlling closed 3 months ago
I've got this working.
I forgot that I had made environment variables for the identity provider and when switching from React to NextJS I had to change the environment variable name prefix from REACTAPP to NEXTPUBLIC
I've closed this issue
@khlling, glad you were able to unblock yourself! Was there potentially any area in the documentation that could have been improved to clear this up?
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
Authentication, GraphQL API
Amplify Version
v6
Amplify Categories
No response
Backend
Amplify CLI
Environment information
Describe the bug
I can sign in via Federated sign-in e.g: https://docs.amplify.aws/gen1/react/prev/build-a-backend/auth/advanced-workflows/#google-sign-in-react
I have setup SSR in the page.tsx as per: https://docs.amplify.aws/gen1/javascript/prev/build-a-backend/server-side-rendering/#enabling-ssr
I am using client-side code rendered in the browser as I am building out admin pages and don't require server-side rendering:
I am getting and error when the above list query is being called:
You must specify a federated provider
Error getting list of draft lessons Error: No current user
This only occurs when I've deployed the app to hosting. It returns fine locally.
Expected behavior
Get result from list query
Reproduction steps
I have setup SSR in the page.tsx as per: https://docs.amplify.aws/gen1/javascript/prev/build-a-backend/server-side-rendering/#enabling-ssr
I am using client-side code rendered in the browser as I am building out admin pages and don't require server-side rendering:
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