Skip to content

Conversation

Mo8Faiz
Copy link

@Mo8Faiz Mo8Faiz commented Aug 18, 2025

Summary

This PR improves the error handling logic in the authProvider login method.

Changes

  • Replaced usage of any with proper AxiosError typing.
  • Structured error response now includes:
    • message: extracted from API error response or fallback to generic error message.
    • name: "LoginError" for better error classification.

Why?

  • Provides developers with clearer, more consistent error messages.
  • Improves type safety by removing any.
  • Makes debugging and displaying user-friendly messages easier.

Impact

  • No breaking changes.
  • Better DX (developer experience) when handling authentication errors.

Copy link

netlify bot commented Aug 18, 2025

Deploy Preview for refine-real-world ready!

Name Link
🔨 Latest commit 94eb85c
🔍 Latest deploy log https://app.netlify.com/projects/refine-real-world/deploys/68a33b35c36f8b00084eb82d
😎 Deploy Preview https://deploy-preview-4--refine-real-world.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant