assemblee-virtuelle / semapps

A toolbox to create semantic web applications
https://semapps.org
Apache License 2.0
88 stars 9 forks source link

Show error message to user, if authProvider login fails #1310

Closed Laurin-W closed 2 months ago

Laurin-W commented 2 months ago

Right now, there is nothing shown to the user, when I'm trying to log in using the login component and an error is thrown: An error is thrown, e.g. here: https://github.com/assemblee-virtuelle/semapps/blob/21411f86a47a74b759118570d3db59ed028fd92b/src/frontend/packages/auth-provider/src/authProvider.js#L52

srosset81 commented 2 months ago

Probably something to do on the LocalLoginPage component or equivalent, as shown in this example:

https://marmelab.com/react-admin/useLogin.html

Laurin-W commented 2 months ago

Ah thanks, so this will go here: https://github.com/activitypods/activitypods/blob/master/app-framework/react/src/components/PodLoginPage.tsx

Created an issue for APods https://github.com/activitypods/activitypods/issues/301