Skip to content

Commit 266f98a

Browse files
committed
updated inrupt authn lib to latest so we needed some changes
1 parent d2e4ca7 commit 266f98a

3 files changed

Lines changed: 21 additions & 7 deletions

File tree

package-lock.json

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

static/browse-test.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,20 +69,20 @@
6969
}
7070

7171
if (authSession) {
72-
authSession.onLogin(() => {
72+
authSession.events.on(EVENTS.SESSION_LOGIN, () => {
7373
mungeLoginArea();
7474
go()
7575
})
76-
authSession.onLogout(() => {
76+
authSession.events.on(EVENTS.SESSION_LOGOUT, () => {
7777
mungeLoginArea();
7878
webIdArea.innerHTML = "public user";
7979
go()
8080
})
81-
authSession.onSessionRestore((url) => {
81+
authSession.events.on(EVENTS.SESSION_RESTORED, (url) => {
8282
mungeLoginArea();
8383
go()
8484
})
85-
}
85+
}
8686
mungeLoginArea();
8787
});
8888
</script>

static/browse.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,16 @@
6969
}
7070

7171
if (authSession) {
72-
authSession.onLogin(() => {
72+
authSession.events.on(EVENTS.SESSION_LOGIN, () => {
7373
mungeLoginArea();
7474
go()
7575
})
76-
authSession.onLogout(() => {
76+
authSession.events.on(EVENTS.SESSION_LOGOUT, () => {
7777
mungeLoginArea();
7878
webIdArea.innerHTML = "public user";
7979
go()
8080
})
81-
authSession.onSessionRestore((url) => {
81+
authSession.events.on(EVENTS.SESSION_RESTORED, (url) => {
8282
mungeLoginArea();
8383
go()
8484
})

0 commit comments

Comments
 (0)