haseakito / funbase

Next generation creators economy platform website
https://funbase.vercel.app
2 stars 0 forks source link

:ambulance: Hotfix NextAuth `signIn` return `ok` status when otherwise #23

Closed haseakito closed 10 months ago

haseakito commented 10 months ago

Issue

Fix

Instead of checking the status by then and catch, I checked the error message of the API response. const res = await signIn('credentials', { ... // send the data} if (res?.error) { ... // do something }

haseakito commented 10 months ago

Memo

NextAuth is trash