backpack
backpack copied to clipboard
This sign-in request is invalid. This either means the site is unsafe,
This sign-in request is invalid. This either means the site is unsafe, or its developer made an error when sending the request: Domain does not match requesting domain
getting this error message when trying to sing in, Phantom wallet have no problme singing in, what can cause the issues?
You can solve it by setting window.location.host as domain in the sign In request:
const signIn = useSignIn(wallet);
const { account } = await signIn({
domain: window.location.host,
statement: 'Please sign in.',
});