You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: welcome.html is auth-aware (completes MVP) (#19)
The welcome page now reflects sign-in state instead of looking
identical regardless of whether the user is authenticated.
Behaviour change on first paint:
Signed out (unchanged from before):
- "Sign in" button revealed by HEAD probe to /idp/register
- "Default sign-in: me / me" credentials block visible
- Tiles probed with plain fetch — /private/, /inbox/, /settings/
401 → dimmed and rerouted to /signin.html
Signed in (new):
- "Sign in" button stays hidden
- Credentials block hidden (the user has already climbed past it)
- Green "signed in as <webid>" note pointing to /account.html
- All tiles probed via session.authFetch — DPoP-bound bearer
attached, /private/ etc. return 200 → tiles stay lit and
navigate correctly
Implementation: solid-oidc imported as an ES module, same
version-pinned jsdelivr URL as the other auth-aware pages.
session.restore() on load decides which branch to render. The
familiar "Missing refresh data" throw on a clean first visit is
caught and treated as "not signed in."
Locked-tile fallback link changed from ./idp (which 403s in
single-user mode) to ./signin.html (which actually starts a flow).
Bumps jspod to 0.0.21.
Refs #1
You're signed in as <strongid="signed-in-webid">me</strong>. Visit your <ahref="./account.html">account</a> to manage password, sign out, etc.
50
+
</p>
51
+
52
+
<pid="explore-hint">Then point a Solid app (e.g. <ahref="https://solid-apps.github.io/pilot/">Pilot</a>) at this server and sign in. Or explore your pod directly:</p>
48
53
49
54
<ulclass="dirs">
50
55
<li><ahref="./profile/">📇 /profile/</a></li>
@@ -57,36 +62,85 @@ <h1>Your Solid pod</h1>
57
62
<footer>Powered by <ahref="https://github.com/JavaScriptSolidServer/jspod">jspod</a></footer>
58
63
</div>
59
64
60
-
<script>
61
-
(function(){
62
-
// Render the server URL the visitor actually used
0 commit comments