Open israx opened 5 days ago
Based on the information provided, it appears that you're using AWS Amplify v6 with Next.js for authentication. However, there's not enough context about the specific issue you're facing. To better assist you, I need more details about the problem you're experiencing. Here are a few questions that would help:
What specific authentication-related issue are you encountering? Are you having problems with sign-up, sign-in, or any other auth flow?
Have you successfully configured Amplify in your Next.js project? If so, can you share the relevant parts of your configuration code?
Are you seeing any error messages or unexpected behaviors? If yes, can you provide the exact error message or describe the unexpected behavior?
Have you made any recent changes to your project that might have triggered this issue?
These details will help me provide a more accurate and helpful solution to your problem.
I solved the issue. Thanks
Before opening, please confirm:
JavaScript Framework
Next.js
Amplify APIs
Authentication
Amplify Version
v6
Amplify Categories
auth
Backend
None
Environment information
Describe the bug
I have an application where users can log in through Google. However, I'm encountering an issue when attempting to retrieve user information on the server side. While the login works fine for one profile, it returns an error for another. This happens only when trying to access same application with different users on different google chrome profile.
Error:
Expected behavior
Profile 1: The server-side function should return the correct user information without any errors, similar to how it behaves on the client side.
Profile 2: The application should continue to work as expected, with the user information retrieved correctly on both the client and server sides.
Reproduction steps
Login with Profile 1
Use Google to log in with user1@gmail.com on Google Profile 1.
Login with Profile 2
Use Google to log in with user2@gmail.com on Google Profile 2. Retrieve User Info on Server Side
On Google Profile 1, attempting to fetch user data server-side results in the following error:
Fetching user info on client side for user on both Google Profile 1 and 2 works correctly.
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