backpack icon indicating copy to clipboard operation
backpack copied to clipboard

This sign-in request is invalid. This either means the site is unsafe,

Open shali1995 opened this issue 1 year ago • 1 comments

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?

shali1995 avatar Jul 18 '24 23:07 shali1995

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.',
});

DvorakDavid7 avatar Feb 05 '25 10:02 DvorakDavid7