Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion apps/dashboard/src/app/login/auth-actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ export async function doLogin(payload: VerifyLoginPayloadParams) {
},
});
// if we do not have a user, create one
if (userRes.status === 404) {
// TODO: this should only need to check for 404, but because of secretKey auth it can also be 400 error
if (userRes.status === 404 || userRes.status === 400) {
const newUserRes = await fetch(`${THIRDWEB_API_HOST}/v1/account/create`, {
method: "POST",
headers: {
Expand Down