sebpalluel / web3-monorepo

⚡️ Get started with your Web3 project,🔋 included: 🌈 Web3Auth & Biconomy for non-custodial Social Login and Account Abstraction, 🗂 monorepo with NX, 💻 Next.js + Next Auth + ChakraUI + Storybook for the frontend, 💾 Hasura GraphQL server and Nest.js for the backend, 🔮 The Graph protocol to query live data from smart contracts.

Home Page:https://web3-monorepo.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Client, various auth fixes + setup basic auth test + wrapper for error handling

sebpalluel opened this issue · comments

Specs

Error wrapper

  • create api middleware to standardize errors

SignUp

  • I can create an account with google sign-in and the create an account with credentials with the same email. In that case i cannot login because i retrieve the first account without account which is the google OAuth user. I shouldn't be able to sign up with credentials matching an OAuth email. An error should indicate what provider to use.
  • I shouldn't be able to create multiple user with the same email in credentials. Display error that account with this email already exist.

SignIn

  • When entering wrong credentials on sign in i should have an error displayed, the credential section should be opened
  • I should be able to retrieve my OAuth account with my email, currently the user is empty when i login with email verifficationToken. Make sure to get the full user if it's the case.
  • I can't login with a different OAuth provider which is a security feature, a clear error message should be displayed, ideally with the provider the user should use.