We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 853dd20 commit 90d1a41Copy full SHA for 90d1a41
default-views/auth/login-required.hbs
@@ -27,7 +27,11 @@
27
const session = await SolidAuthClient.popupLogin({ popupUri })
28
if (session) {
29
// Make authenticated request to the server to establish a session cookie
30
- await SolidAuthClient.fetch(location)
+ const { status } = await SolidAuthClient.fetch(location)
31
+ if (status === 401) {
32
+ alert(`Invalid login.\n\nDid you set ${session.idp} as your OIDC provider in your profile ${session.webId}?`);
33
+ await SolidAuthClient.logout();
34
+ }
35
// Now that we have a cookie, reload to display the authenticated page
36
location.reload()
37
}
0 commit comments