rubber-blueR
Refine3y ago
20 replies
rubber-blue

What type is error for onError within AuthProvider?

I have an onError function in my custom authProvider.ts:
onError: async (error) => {
    console.error("RECIEVED ERROR: ", error);
    return { error };
  },


But I would like to give the error a type so i can use it to handle various situations, what is the type that is used for this error that invokes this onError function?
Was this page helpful?