@inrupt/solid-client-authn-browser 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Session.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/solid-client-authn.bundle.js +2 -2
- package/dist/solid-client-authn.bundle.js.map +1 -1
- package/package.json +5 -5
- package/src/ClientAuthentication.spec.ts +1 -0
- package/src/ClientAuthentication.ts +5 -1
- package/src/Session.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inrupt/solid-client-authn-browser",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"browser": "dist/index.js",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"build-docs-preview-site": "npm run build-api-docs; cd docs/api; make html"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@types/node": "^20.
|
|
28
|
+
"@types/node": "^20.12.7",
|
|
29
29
|
"@types/uuid": "^9.0.8"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@inrupt/oidc-client-ext": "^2.
|
|
33
|
-
"@inrupt/solid-client-authn-core": "^2.
|
|
32
|
+
"@inrupt/oidc-client-ext": "^2.2.0",
|
|
33
|
+
"@inrupt/solid-client-authn-core": "^2.2.0",
|
|
34
34
|
"events": "^3.3.0",
|
|
35
35
|
"jose": "^5.1.3",
|
|
36
36
|
"uuid": "^9.0.1"
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "8c3bd6871831c4fa14b593021bbb830cf68e332f"
|
|
42
42
|
}
|
|
@@ -101,7 +101,11 @@ export default class ClientAuthentication extends ClientAuthenticationBase {
|
|
|
101
101
|
eventEmitter: EventEmitter,
|
|
102
102
|
): Promise<ISessionInfo | undefined> => {
|
|
103
103
|
try {
|
|
104
|
-
const redirectInfo = await this.redirectHandler.handle(
|
|
104
|
+
const redirectInfo = await this.redirectHandler.handle(
|
|
105
|
+
url,
|
|
106
|
+
eventEmitter,
|
|
107
|
+
undefined,
|
|
108
|
+
);
|
|
105
109
|
// The `FallbackRedirectHandler` directly returns the global `fetch` for
|
|
106
110
|
// his value, so we should ensure it's bound to `window` rather than to
|
|
107
111
|
// ClientAuthentication, to avoid the following error:
|
package/src/Session.ts
CHANGED
|
@@ -115,7 +115,7 @@ function isLoggedIn(
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
/**
|
|
118
|
-
* A {@link Session} object represents a user's session on an application. The session holds state, as it stores information enabling
|
|
118
|
+
* A {@link Session} object represents a user's session on an application. The session holds state, as it stores information enabling access to private resources after login for instance.
|
|
119
119
|
*/
|
|
120
120
|
export class Session implements IHasSessionEventListener {
|
|
121
121
|
/**
|