We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e9d13c commit 39aeb14Copy full SHA for 39aeb14
apps/dashboard/src/app/login/auth-actions.ts
@@ -95,7 +95,8 @@ export async function doLogin(payload: VerifyLoginPayloadParams) {
95
},
96
});
97
// if we do not have a user, create one
98
- if (userRes.status === 404) {
+ // TODO: this should only need to check for 404, but because of secretKey auth it can also be 400 error
99
+ if (userRes.status === 404 || userRes.status === 400) {
100
const newUserRes = await fetch(`${THIRDWEB_API_HOST}/v1/account/create`, {
101
method: "POST",
102
headers: {
0 commit comments