SIWE Token Gating Display Message #2035
jasonandrewth
started this conversation in
General
Replies: 1 comment 2 replies
-
@jasonandrewth We currently don't have a way to pass custom error messages to the modal. Would it be possible for you to check user balance before opening the actual modal ? We kind of want to stay away from letting users passing custom error messages, since we have internalization (i18n) support to maintain as well. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have succesfully implemented Siwe in Next-auth (like so: https://docs.login.xyz/integrations/nextauth.js?ref=blog.spruceid.com) and using alchemy I check for a Token Balance, if it's 0 the login does not resolve. Now using @rainbow-me/rainbowkit-siwe-next-auth package it just displays a generic 'couldnt be signed' Error message. how can I change this to a personalized Message that notifies a user the token hasn't been found? I generally like the UI and it would be nice to keep it in the modal.
I don't see any options to customize the Message or the Look of the sign message part, I feel like that's really important for @rainbow-me/rainbowkit-siwe-next-auth to actually be useful. Please let me know if there is any such option:)
Beta Was this translation helpful? Give feedback.
All reactions