Skip to content

Commit 28ee458

Browse files
committed
made client more resilient - continue on without issuer or inbox
1 parent 58d21b4 commit 28ee458

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

dist/browser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15491,8 +15491,8 @@
1549115491
const client2 = metro.client(metro.oidc.oidcmw(options), oldmmw(options));
1549215492
Object.assign(client2, {
1549315493
profile,
15494-
issuer: profile.solid$oidcIssuer.id,
15495-
inbox: profile.ldp$inbox.id,
15494+
issuer: profile.solid$oidcIssuer?.id,
15495+
inbox: profile.ldp$inbox?.id,
1549615496
id: function() {
1549715497
return metro.oidc.idToken(this.issuer);
1549815498
},

dist/browser.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/browser.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/browser.min.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@muze-nl/jsfs-solid",
3-
"version": "0.3.9",
3+
"version": "0.4.0",
44
"author": "auke@muze.nl",
55
"source": "src/SolidAdapter.js",
66
"main": "src/SolidClient.js",

src/SolidClient.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ export default async function solidClient(webid, solidOptions) {
4242
const client = metro.client(metro.oidc.oidcmw(options), oldmmw(options))
4343
Object.assign(client, {
4444
profile,
45-
issuer: profile.solid$oidcIssuer.id,
46-
inbox: profile.ldp$inbox.id,
45+
issuer: profile.solid$oidcIssuer?.id,
46+
inbox: profile.ldp$inbox?.id,
4747
id: function() {
4848
return metro.oidc.idToken(this.issuer)
4949
},

0 commit comments

Comments
 (0)