NeokingdomDAO / dapp

https://dapp-neokingdom.vercel.app/
0 stars 0 forks source link

Log in with wallet + enable graphql #16

Closed vrde closed 1 year ago

vrde commented 1 year ago

Publishing this as a draft and at one point it should solve #9.

We should allow users to log in with both their wallet and their odoo credentials. Some of us use an hardware wallet, and you don't always want to use it to log in (especially when you are using the app from your phone to just do time tracking).

The approach I propose here is:

From now on NextJS can proxy all calls from /api/graphql to https://odoo.neokingdom.org/graphql by using the user's cookie.

NB: the code is not production ready. It's to show the authentication flow but must be refactored.

vercel[bot] commented 1 year ago

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

Name Status Preview Comments Updated
dapp-neokingdom ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 17, 2023 at 11:20AM (UTC)
dapp-teledisko ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 17, 2023 at 11:20AM (UTC)