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

error while logging in #20

Open
Amanb1145 opened this issue Jul 18, 2023 · 4 comments
Open

error while logging in #20

Amanb1145 opened this issue Jul 18, 2023 · 4 comments

Comments

@Amanb1145
Copy link

Amanb1145 commented Jul 18, 2023

tried to login using metamask on tokengated-next-chatgpt.vercel.app but got this error-
{"error":"Failed to create auth user"}

@idiom-bytes
Copy link
Member

Hi @Amanb1145, can you please try again? I believe you were actively on top of our repo when we were finalizing somethings. Thank you!

@flowscience
Copy link

flowscience commented Jul 19, 2023

Still happening. Generates a new nonce each time but FE doesn't load anything new, it just goes back to the "login with metamask". Using Brave v1.52.130

Notably, I connected with Wallet Connect first, then once connected I'm trying to sign with Metamask.
image
image

@idiom-bytes
Copy link
Member

I haven't tested w/ WC yet, but don't think that's the issue.

I believe there is a race condition that happens and the login fails before the cookie is assigned. I have documented this in README_improvements.md and will spend more time around login/jwt/session/UX when I get the chance.

@idiom-bytes
Copy link
Member

idiom-bytes commented Jul 19, 2023

I realized that I have not documented this anywhere... can you please buy the datatoken here? It's published on mumbai testnet.

I have updated the README.md to address this UX issue

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

No branches or pull requests

3 participants