Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support wallet logon #64

Merged
merged 9 commits into from
Nov 21, 2021
Merged

Conversation

JoviDeCroock
Copy link
Contributor

@JoviDeCroock JoviDeCroock commented Nov 19, 2021

This is in anticipation of the new database schema, this allows us to logon using our metamask/... wallet. We send the address provided by the wallet up to /api/auth and this will send us back whether or not we're valid and create/give us back an account from supabase.

After that we can redirect our user to /create-profile when they're new or to /jobs

resolves #4

@vercel
Copy link

vercel bot commented Nov 19, 2021

@JoviDeCroock is attempting to deploy a commit to the Developerdao Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

@carlomigueldy carlomigueldy left a comment

Choose a reason for hiding this comment

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

Awesome stuff @JoviDeCroock !

Just got a rename request for the attribute to store the wallet address and let's add nonce

client/pages/api/auth.ts Outdated Show resolved Hide resolved
client/pages/api/auth.ts Outdated Show resolved Hide resolved
client/pages/api/auth.ts Show resolved Hide resolved
@carlomigueldy carlomigueldy mentioned this pull request Nov 20, 2021
client/components/navigation/Navbar.tsx Outdated Show resolved Hide resolved
client/pages/api/auth.ts Show resolved Hide resolved
client/pages/auth/index.tsx Outdated Show resolved Hide resolved
@JoviDeCroock
Copy link
Contributor Author

Thanks for the reviews! I'll wait for the database changes to go live, then test and convert to "ready for review"

@carlomigueldy
Copy link
Contributor

Thanks for the reviews! I'll wait for the database changes to go live, then test and convert to "ready for review"

Merged my PR and updated the database, you can test out the new changes.

@JoviDeCroock JoviDeCroock marked this pull request as ready for review November 21, 2021 10:39
Copy link
Contributor

@carlomigueldy carlomigueldy left a comment

Choose a reason for hiding this comment

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

Very awesome @JoviDeCroock ! 💯

@@ -17,19 +17,20 @@
"@usedapp/core": "^0.5.4",
"babel-plugin-styled-components": "^1.13.3",
"cross-env": "^7.0.3",
"doppler": "^1.0.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Noticed this was unused and not present in the lockfile. Removed it as it's unused and a risk for versioning 😅

@carlomigueldy carlomigueldy merged commit d763ce0 into Developer-DAO:main Nov 21, 2021
@JoviDeCroock JoviDeCroock deleted the wallet-logon branch November 21, 2021 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Web3 auth w/ supabase instead of email/pass
3 participants