Skip to content
This repository was archived by the owner on Mar 12, 2024. It is now read-only.

Add new user page#429

Open
EstebanDalelR wants to merge 1 commit intodevfrom
feature/attribution-for-new-user
Open

Add new user page#429
EstebanDalelR wants to merge 1 commit intodevfrom
feature/attribution-for-new-user

Conversation

@EstebanDalelR
Copy link
Member

Description

This is a test on the new user page.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Chore: cleanup/renaming, etc
  • RFC
  • Test

Notes

Read on SO that it doesn't work, so better test now.

Acceptance

@vercel
Copy link

vercel bot commented Jan 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
watermelon ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 19, 2024 4:11pm

@EstebanDalelR
Copy link
Member Author

If this is successful, the next pr will fix #407

const session = await getServerSession(authOptions);
const userEmail = session?.user?.email;
const userName = session?.user?.name;
console.log("new user", userEmail);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove console log

Copy link
Collaborator

@baristaGeek baristaGeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for posting the Stack Overflow link about Next-auth. Apparently it's hard to do.

I created a new gmail user estebanvaragsgarcia737@gmail.com and tested creating a Watermelon account with such. I didn't get redirected to the attribution page.

The console log did successfully log the email address though (unlike logging in with an already existing user such as estebanvargas94@gmail.com).

Screenshot 2024-01-22 at 11 18 51 AM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants