#Auth-astro intregation not showing errors on client side?

7 messages · Page 1 of 1 (latest)

frail crescent
#

Hello my people! issue here. I´m usign auth-astro to manage logins in my site. I´m trying to intregate the credentials provider, buuuut when I make a bad request ("wrong password"), in the browser I get a success message, while on the server console I get the error I need to show!!! Help!! How can I solve this???

Here is my config code.
const isPasswordValid = await bcrypt.compare(password, user.password); if (isPasswordValid) { // Password is valid, return the user object return user } else { throw new Error("Contraseña incorrecta") }

PD: "Contraseña incorrecta" is wrong password in mexican🧦

#

@swift trench I know yo can help me with this issue haha

frail crescent
#

@frigid minnow heeeelp

frigid minnow
#

I don't know much about auth so I don't know if I can help but if you have a repo I can check it out

frail crescent
#

It's a rather big repository, but these are my primary authentication files

frail crescent