-
Notifications
You must be signed in to change notification settings - Fork 642
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
[bug] Verification gets stuck on using custom auth #1497
Comments
This issue is related to https://github.com/orgs/WalletConnect/discussions/3590 as well. Seems WalletConnect is failing on calling the |
You can move forward a bit with this if you're using Install Dependencies: Create a config-overrides.js file at the root of your project. This is where you'll make changes to the Webpack configuration.
In your package.json, update the start, build, and test scripts to use react-app-rewired:
Still not working sadly, however the domain https://verify.walletconnect.com finally can be reached from localhost. |
I encountered the same problem: it keeps verifying the signature indefinitely. I am using NextAuth, and the authorize function is never triggered. Thus, I assume the problem might be related to the configuration or packages. Recently, I built a similar system, and it worked just fine. We are merely migrating it to Next 13 with the server components. |
@xRozzo Can you check what your NEXTAUTH_URL is? I had the same problem when I was using a different URL then I specified. |
When nextjs 13.4.9 auth works, but gets frozen on Auth dependencies:
I see that the |
Hey @rivaratyr. I can't reproduce this on my end. Are you able to tell me what wallet you're using when testing this ? Are you able to see if you're getting any console errors from your browser ? |
@rivaratyr Can't seem to reproduce this on my end. Can you look at our example code here and let me know if there was anything missing ? Also a small reproducible example would be great. Link to codesandbox or repo would be awesome. |
Going to close this issue for now since can't reproduce this on my end. Refer to this example if you wanna use next-auth 👍 |
Is there an existing issue for this?
Possibly [bug] SiWe as safe app does not call the authenticate function #1119 is related.
Seems https://github.com/orgs/WalletConnect/discussions/3590 is related as well.
RainbowKit Version
1.0.8
wagmi Version
1.3.10
Current Behavior
When implementing a custom authentication by
createAuthenticationAdapter()
from RainbowKit following the docs on https://www.rainbowkit.com/docs/custom-authenticationThe message to sign (login) shows perfectly, but it freezes on the verification step window even if I return true forcibly.
Based in the interface it needs a boolean:
export interface AuthenticationAdapter<Message> { getNonce: () => Promise<string>; createMessage: (args: { nonce: string; address: string; chainId: number; }) => Message; getMessageBody: (args: { message: Message; }) => string; verify: (args: { message: Message; signature: string; }) => Promise<boolean>; signOut: () => Promise<void>;}
What can be the issue?
Expected Behavior
Verifying continues or provides error message.
Steps To Reproduce
Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)
Can provide git repository in private, also available for a 15-30 min call to showcase the issue.
Anything else?
Environment is React with create-react-app, Node 18, localhost:3000. Relevant excerpt from package.json:
"dependencies": { "@rainbow-me/rainbowkit": "^1.0.8", "axios": "^1.4.0", "dotenv": "^16.3.1", "lodash.merge": "^4.6.2", "react": "^18.2.0", "react-router": "^6.10.0", "react-router-dom": "^6.10.0", "siwe": "^2.1.4", "typescript": "^5.0.4", "viem": "^1.6.0", "wagmi": "^1.3.10" }, "devDependencies": { "react-scripts": "^5.0.1" }, "overrides": { "react-scripts": { "typescript": "^5" } }
The text was updated successfully, but these errors were encountered: