I followed everything in here:
I donāt want to bother anyone by sharing all of those codes, I have re-paste and checked them several times:
pages/_app.js
pages/api/auth/[...nextauth].js
pages/api/auth/request-message.js
pages/signin.js
/user.js
I can see āAuthenticate with metamaskā button, I could connect to the app but signin fails with that error. Please help me if you 've been through this before, thanks
page:
Unhandled Runtime Error
AxiosError: Request failed with status code 400
Call Stack
settle
node_modules/axios/lib/core/settle.js (19:0)
XMLHttpRequest.onloadend
node_modules/axios/lib/adapters/xhr.js (100:12)
console:
{
"message": "Request failed with status code 400",
"name": "AxiosError",
"stack": "AxiosError: Request failed with status code 400\n at settle (webpack-internal:///./node_modules/axios/lib/core/settle.js:24:12)\n at XMLHttpRequest.onloadend (webpack-internal:///./node_modules/axios/lib/adapters/xhr.js:117:66)",
"config": {
"transitional": {
"silentJSONParsing": true,
"forcedJSONParsing": true,
"clarifyTimeoutError": false
},
"transformRequest": [
null
],
"transformResponse": [
null
],
"timeout": 0,
"xsrfCookieName": "XSRF-TOKEN",
"xsrfHeaderName": "X-XSRF-TOKEN",
"maxContentLength": -1,
"maxBodyLength": -1,
"env": {},
"headers": {
"Accept": "application/json, text/plain, */*",
"Content-Type": "application/x-www-form-urlencoded",
"content-type": "application/json"
},
"method": "post",
"url": "/api/auth/request-message",
"data": "{\"address\":\"0x4b27...1dFf\",\"chain\":1,\"network\":\"evm\"}"
},
"code": "ERR_BAD_REQUEST",
"status": 400
}