@userfrosting/sprinkle-account
Version:
Account 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. If a 401 error occurs, it will unset the user in the Auth
* store.
*
* @see https://axios-http.com/docs/interceptors
*/
export declare const useAxiosInterceptor: () => void;