@userfrosting/sprinkle-core
Version:
Core Sprinkle for UserFrosting
11 lines (10 loc) • 309 B
TypeScript
/**
* Axios Error Handler
*
* This composable sets up an Axios interceptor to handle errors globally using
* the Alerts store. It sends the error to the Alerts store, unless it's a 401
* error.
*
* @see https://axios-http.com/docs/interceptors
*/
export declare const useAxiosInterceptor: () => void;