🐛 Fix deps
Tim Izzo tim@5ika.ch
Mon, 06 Jan 2025 09:43:13 +0100
4 files changed,
6 insertions(+),
16 deletions(-)
M
package.json
→
package.json
@@ -34,9 +34,9 @@ "vite": "^5.4.11"
}, "dependencies": { "@inrupt/solid-client": "^2.1.2", + "@inrupt/solid-client-authn-node": "^2.3.0", "@inrupt/vocab-common-rdf": "^1.0.5", - "@tailwindcss/typography": "^0.5.15", - "svelte-solid-auth": "file:../svelte-solid-auth" + "@tailwindcss/typography": "^0.5.15" }, "packageManager": "yarn@4.6.0" }
M
src/hooks.server.ts
→
src/hooks.server.ts
@@ -44,6 +44,7 @@ if (!resourceUrl) throw new Error('No resource URL provided');
const sessionId = event.cookies.get('sessionId'); if (!sessionId) throw new Error('No session ID'); const session = await getSessionFromStorage(sessionId); + console.log('FETCH POD RESOURCE ', resourceUrl); return session?.fetch(resourceUrl); }
M
src/routes/(auth)/+page.svelte
→
src/routes/(auth)/+page.svelte
@@ -5,7 +5,7 @@
let { data }: { data: PageData } = $props(); </script> -{#await getProfile(data?.session?.webId)} +{#await getProfile(data?.session?.webId + '/')} Récupération du profil... {:then profile} <h2>{profile.name}</h2>@@ -13,6 +13,6 @@ <h3>{profile.organization}</h3>
<img src={profile.image} alt="Profile" /> {/await} -<form method="GET" action="/logout"> +<form method="GET" action="/solid/logout"> <button type="submit">Déconnexion</button> </form>
M
yarn.lock
→
yarn.lock
@@ -3458,17 +3458,6 @@ checksum: 10c0/52bbbf5d266fc36f64626e38d8de4354d78a5490fa60b61b1cd127c1c661d94f0c671a220e3ed7dd92b144a3c99f517d5205c218f78feea0603132f24eeb4c9d
languageName: node linkType: hard -"svelte-solid-auth@file:../svelte-solid-auth::locator=tabemono%40workspace%3A.": - version: 0.0.1 - resolution: "svelte-solid-auth@file:../svelte-solid-auth#../svelte-solid-auth::hash=9c05f0&locator=tabemono%40workspace%3A." - dependencies: - "@inrupt/solid-client-authn-node": "npm:^2.3.0" - peerDependencies: - svelte: ^5.0.0 - checksum: 10c0/7417d915d5f500258939c69593014eff39c3cd7bec2385993b9d93cf569942747390d629e3163f228893c9432a29d683abaf9dcc92ed1f03d7ecf99fcfd23800 - languageName: node - linkType: hard - "svelte@npm:^5.0.0": version: 5.16.1 resolution: "svelte@npm:5.16.1"@@ -3497,6 +3486,7 @@ resolution: "tabemono@workspace:."
dependencies: "@eslint/compat": "npm:^1.2.3" "@inrupt/solid-client": "npm:^2.1.2" + "@inrupt/solid-client-authn-node": "npm:^2.3.0" "@inrupt/vocab-common-rdf": "npm:^1.0.5" "@sveltejs/adapter-auto": "npm:^3.0.0" "@sveltejs/kit": "npm:^2.0.0"@@ -3512,7 +3502,6 @@ prettier-plugin-svelte: "npm:^3.2.6"
prettier-plugin-tailwindcss: "npm:^0.6.5" svelte: "npm:^5.0.0" svelte-check: "npm:^4.0.0" - svelte-solid-auth: "file:../svelte-solid-auth" tailwindcss: "npm:^3.4.9" typescript: "npm:^5.0.0" typescript-eslint: "npm:^8.0.0"