Aditya Kirad
Aditya Kirad
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Aditya Kirad on 4/19/2025 in #questions
need advice with building e-commerce application
is medusa a good option and will there be any problem if I host it on subdomain
5 replies
BABetter Auth
Created by Aditya Kirad on 4/1/2025 in #help
not getting rate limited
Hey, I would I like to report one problem with forgetPassword API which is when we invoke it, and it doesn't find the user in database the error is only logged in console not thrown due to which we can't catch it catch block also the status Boolean is always true so that's not helpful also how I am supposed to tell the user it didn't exist
10 replies
KPCKevin Powell - Community
Created by Aditya Kirad on 4/3/2025 in #help
height changing on transition when it's not expected
alright now we know the actual reason we can close this post
26 replies
KPCKevin Powell - Community
Created by Aditya Kirad on 4/3/2025 in #help
height changing on transition when it's not expected
I know that but didn't thinked that this can cause this issue
26 replies
KPCKevin Powell - Community
Created by Aditya Kirad on 4/3/2025 in #help
height changing on transition when it's not expected
maybe a bug in build
26 replies
KPCKevin Powell - Community
Created by Aditya Kirad on 4/3/2025 in #help
height changing on transition when it's not expected
I'm running 135.0.3179.52 (Official build) beta (64-bit)
26 replies
KPCKevin Powell - Community
Created by Aditya Kirad on 4/3/2025 in #help
height changing on transition when it's not expected
hmm that's strange in my edge this issue is happening while not in yours what build you are running
26 replies
KPCKevin Powell - Community
Created by Aditya Kirad on 4/3/2025 in #help
height changing on transition when it's not expected
my bad I should have checked in other browsers also
26 replies
KPCKevin Powell - Community
Created by Aditya Kirad on 4/3/2025 in #help
height changing on transition when it's not expected
I wonder why it's happening in edge not in other browsers
26 replies
KPCKevin Powell - Community
Created by Aditya Kirad on 4/3/2025 in #help
height changing on transition when it's not expected
I tried same thing right now in zen it works fine there
26 replies
KPCKevin Powell - Community
Created by Aditya Kirad on 4/3/2025 in #help
height changing on transition when it's not expected
I just found that this issue is with only edge
26 replies
KPCKevin Powell - Community
Created by Aditya Kirad on 4/3/2025 in #help
height changing on transition when it's not expected
are you saying that I gave you wrong video
26 replies
KPCKevin Powell - Community
Created by Aditya Kirad on 4/3/2025 in #help
height changing on transition when it's not expected
you can clearly see the in the video that during start and running of transition highlight element is thick while at the end it becomes thin
26 replies
KPCKevin Powell - Community
Created by Aditya Kirad on 4/3/2025 in #help
height changing on transition when it's not expected
26 replies
BABetter Auth
Created by Aditya Kirad on 4/1/2025 in #help
not getting rate limited
what? I was talking about this piece of code
export async function signIn(prevState: unknown, formData: FormData) {
const submission = parseWithZod(formData, { schema: signInSchema });

if (submission.status !== "success") {
return submission.reply();
}

try {
await signInEmail({
body: {
...submission.value,
callbackURL: "/",
},
});
} catch (error) {
if (error instanceof APIError) {
if (error.status === "TOO_MANY_REQUESTS") {
return submission.reply({
formErrors: [error.message],
});
}
if (error.status === "FORBIDDEN") {
return submission.reply({
formErrors: ["Verify your email before siging in"],
});
}
if (error.status === "UNAUTHORIZED") {
return submission.reply({
fieldErrors: {
email: ["Invalid Credentials"],
password: ["Invalid Credentials"],
},
});
}
throw error;
}
throw error;
}
}
export async function signIn(prevState: unknown, formData: FormData) {
const submission = parseWithZod(formData, { schema: signInSchema });

if (submission.status !== "success") {
return submission.reply();
}

try {
await signInEmail({
body: {
...submission.value,
callbackURL: "/",
},
});
} catch (error) {
if (error instanceof APIError) {
if (error.status === "TOO_MANY_REQUESTS") {
return submission.reply({
formErrors: [error.message],
});
}
if (error.status === "FORBIDDEN") {
return submission.reply({
formErrors: ["Verify your email before siging in"],
});
}
if (error.status === "UNAUTHORIZED") {
return submission.reply({
fieldErrors: {
email: ["Invalid Credentials"],
password: ["Invalid Credentials"],
},
});
}
throw error;
}
throw error;
}
}
am I handling the error correct way
10 replies
BABetter Auth
Created by Aditya Kirad on 4/1/2025 in #help
not getting rate limited
okay can you check one thing if I'm handling the auth error correctly because error.status === "FORBIDDEN" doesn't clearly suggest that error happened becaus email was not verified or I will get this status when only email is not verified etc
10 replies
BABetter Auth
Created by Aditya Kirad on 4/1/2025 in #help
not getting rate limited
you can check the code I provided I have enabled it
10 replies
BABetter Auth
Created by Aditya Kirad on 3/29/2025 in #help
session cookie not setting after signup
In remix whenever I set a auth cookie a random value is added to after the actual value
16 replies