incredible-moccasinI
Refineโ€ข3y agoโ€ข
15 replies
incredible-moccasin

cannot capture error when authenticating

I'm using refine.dev with strapi for login and data access.

How can I capture login error ?

My authprovider.ts looks like this, and I don't know to attach an handler on a failed response.


export const authProvider: AuthBindings = {
login: async ({ email, password }) => {



const { data, status } = await strapiAuthHelper.login(email, password);
Was this page helpful?