schiehll / react-alert

alerts for React
MIT License
608 stars 98 forks source link

React alerts during authentication #88

Closed nueldev closed 5 years ago

nueldev commented 6 years ago

Hi, i'm using express for my backend and I was wondering how to use this repo and display error alert when the credentials are wrong on authentication? I couldn't find anything on google about this.

louisnovick commented 5 years ago

You'd want to return an error from the server when authentication fails. You can then catch this error in your app and display it as an alert.