import { AxiosError } from "axios" ; interface APIGatewayAuthResponse { message ? : string ; } param error export const getAuthErrorMessage = ( error ) : string | undefined => { const data = error . response && error . response . data ; if ( data ) { return data . message ; } } ;