@inrupt/solid-client-authn-browser 1.11.9-alpha.0 → 1.11.9-alpha.3
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/index.es.js +4 -352
- package/dist/index.es.js.map +1 -0
- package/dist/index.js +12 -360
- package/dist/index.js.map +1 -1
- package/dist/solid-client-authn.bundle.js +14 -363
- package/dist/solid-client-authn.bundle.js.map +1 -0
- package/package.json +8 -5
- package/.eslintrc.js +0 -16
- package/NOTICE +0 -5
- package/coverage/clover.xml +0 -547
- package/coverage/coverage-final.json +0 -28
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -266
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov-report/src/ClientAuthentication.ts.html +0 -631
- package/coverage/lcov-report/src/Session.ts.html +0 -1435
- package/coverage/lcov-report/src/constant.ts.html +0 -163
- package/coverage/lcov-report/src/defaultSession.ts.html +0 -460
- package/coverage/lcov-report/src/dependencies.ts.html +0 -400
- package/coverage/lcov-report/src/iframe.ts.html +0 -394
- package/coverage/lcov-report/src/index.browser.ts.html +0 -157
- package/coverage/lcov-report/src/index.html +0 -206
- package/coverage/lcov-report/src/login/AggregateLoginHandler.ts.html +0 -226
- package/coverage/lcov-report/src/login/index.html +0 -116
- package/coverage/lcov-report/src/login/oidc/AggregateOidcHandler.ts.html +0 -226
- package/coverage/lcov-report/src/login/oidc/ClientRegistrar.ts.html +0 -415
- package/coverage/lcov-report/src/login/oidc/IssuerConfigFetcher.ts.html +0 -646
- package/coverage/lcov-report/src/login/oidc/OidcLoginHandler.ts.html +0 -436
- package/coverage/lcov-report/src/login/oidc/Redirector.ts.html +0 -229
- package/coverage/lcov-report/src/login/oidc/index.html +0 -176
- package/coverage/lcov-report/src/login/oidc/oidcHandlers/AuthorizationCodeWithPkceOidcHandler.ts.html +0 -478
- package/coverage/lcov-report/src/login/oidc/oidcHandlers/OidcHandlerCanHandleTest.ts.html +0 -319
- package/coverage/lcov-report/src/login/oidc/oidcHandlers/index.html +0 -131
- package/coverage/lcov-report/src/login/oidc/redirectHandler/AggregateRedirectHandler.ts.html +0 -226
- package/coverage/lcov-report/src/login/oidc/redirectHandler/AuthCodeRedirectHandler.ts.html +0 -667
- package/coverage/lcov-report/src/login/oidc/redirectHandler/ErrorOidcHandler.ts.html +0 -283
- package/coverage/lcov-report/src/login/oidc/redirectHandler/FallbackRedirectHandler.ts.html +0 -265
- package/coverage/lcov-report/src/login/oidc/redirectHandler/index.html +0 -161
- package/coverage/lcov-report/src/login/oidc/refresh/TokenRefresher.ts.html +0 -385
- package/coverage/lcov-report/src/login/oidc/refresh/index.html +0 -116
- package/coverage/lcov-report/src/login/webid/WebIdLoginHandler.ts.html +0 -250
- package/coverage/lcov-report/src/login/webid/index.html +0 -116
- package/coverage/lcov-report/src/logout/GeneralLogoutHandler.ts.html +0 -220
- package/coverage/lcov-report/src/logout/index.html +0 -116
- package/coverage/lcov-report/src/sessionInfo/SessionInfoManager.ts.html +0 -775
- package/coverage/lcov-report/src/sessionInfo/index.html +0 -116
- package/coverage/lcov-report/src/storage/BrowserStorage.ts.html +0 -229
- package/coverage/lcov-report/src/storage/StorageUtility.ts.html +0 -214
- package/coverage/lcov-report/src/storage/index.html +0 -131
- package/coverage/lcov-report/src/util/UuidGenerator.ts.html +0 -226
- package/coverage/lcov-report/src/util/index.html +0 -131
- package/coverage/lcov-report/src/util/urlPath.ts.html +0 -208
- package/coverage/lcov.info +0 -1001
- package/dist/ClientAuthentication.js +0 -64
- package/dist/ClientAuthentication.js.map +0 -1
- package/dist/Session.js +0 -165
- package/dist/Session.js.map +0 -1
- package/dist/constant.js +0 -7
- package/dist/constant.js.map +0 -1
- package/dist/defaultSession.js +0 -48
- package/dist/defaultSession.js.map +0 -1
- package/dist/dependencies.js +0 -41
- package/dist/dependencies.js.map +0 -1
- package/dist/iframe.js +0 -43
- package/dist/iframe.js.map +0 -1
- package/dist/index.browser.d.ts +0 -1
- package/dist/index.browser.js +0 -28
- package/dist/index.browser.js.map +0 -1
- package/dist/login/AggregateLoginHandler.js +0 -10
- package/dist/login/AggregateLoginHandler.js.map +0 -1
- package/dist/login/oidc/AggregateOidcHandler.js +0 -10
- package/dist/login/oidc/AggregateOidcHandler.js.map +0 -1
- package/dist/login/oidc/ClientRegistrar.js +0 -51
- package/dist/login/oidc/ClientRegistrar.js.map +0 -1
- package/dist/login/oidc/IssuerConfigFetcher.js +0 -124
- package/dist/login/oidc/IssuerConfigFetcher.js.map +0 -1
- package/dist/login/oidc/OidcLoginHandler.js +0 -40
- package/dist/login/oidc/OidcLoginHandler.js.map +0 -1
- package/dist/login/oidc/Redirector.js +0 -21
- package/dist/login/oidc/Redirector.js.map +0 -1
- package/dist/login/oidc/__mocks__/IOidcOptions.d.ts +0 -2
- package/dist/login/oidc/__mocks__/IOidcOptions.js +0 -25
- package/dist/login/oidc/__mocks__/IOidcOptions.js.map +0 -1
- package/dist/login/oidc/oidcHandlers/AuthorizationCodeWithPkceOidcHandler.js +0 -56
- package/dist/login/oidc/oidcHandlers/AuthorizationCodeWithPkceOidcHandler.js.map +0 -1
- package/dist/login/oidc/oidcHandlers/OidcHandlerCanHandleTest.js +0 -47
- package/dist/login/oidc/oidcHandlers/OidcHandlerCanHandleTest.js.map +0 -1
- package/dist/login/oidc/redirectHandler/AggregateRedirectHandler.js +0 -10
- package/dist/login/oidc/redirectHandler/AggregateRedirectHandler.js.map +0 -1
- package/dist/login/oidc/redirectHandler/AuthCodeRedirectHandler.js +0 -92
- package/dist/login/oidc/redirectHandler/AuthCodeRedirectHandler.js.map +0 -1
- package/dist/login/oidc/redirectHandler/ErrorOidcHandler.js +0 -26
- package/dist/login/oidc/redirectHandler/ErrorOidcHandler.js.map +0 -1
- package/dist/login/oidc/redirectHandler/FallbackRedirectHandler.js +0 -20
- package/dist/login/oidc/redirectHandler/FallbackRedirectHandler.js.map +0 -1
- package/dist/login/oidc/refresh/TokenRefresher.js +0 -31
- package/dist/login/oidc/refresh/TokenRefresher.js.map +0 -1
- package/dist/login/webid/WebIdLoginHandler.js +0 -12
- package/dist/login/webid/WebIdLoginHandler.js.map +0 -1
- package/dist/logout/GeneralLogoutHandler.js +0 -15
- package/dist/logout/GeneralLogoutHandler.js.map +0 -1
- package/dist/sessionInfo/SessionInfoManager.js +0 -95
- package/dist/sessionInfo/SessionInfoManager.js.map +0 -1
- package/dist/solid-client-authn.bundle.js.LICENSE.txt +0 -17
- package/dist/storage/BrowserStorage.js +0 -18
- package/dist/storage/BrowserStorage.js.map +0 -1
- package/dist/storage/StorageUtility.js +0 -10
- package/dist/storage/StorageUtility.js.map +0 -1
- package/dist/util/UuidGenerator.js +0 -10
- package/dist/util/UuidGenerator.js.map +0 -1
- package/dist/util/urlPath.js +0 -11
- package/dist/util/urlPath.js.map +0 -1
- package/docs/api/Makefile +0 -76
- package/docs/api/README.md +0 -46
- package/docs/api/build/docs-assets/README.md +0 -183
- package/docs/api/build/docs-assets/_static/css/inrupt.css +0 -349
- package/docs/api/build/docs-assets/_templates/breadcrumb-navigation.html +0 -10
- package/docs/api/build/docs-assets/_templates/copyright.html +0 -3
- package/docs/api/build/docs-assets/_templates/docs-sidebar.html +0 -32
- package/docs/api/build/docs-assets/_templates/docs-version-selector.html +0 -21
- package/docs/api/build/docs-assets/_templates/jira-feedback.html +0 -21
- package/docs/api/build/docs-assets/_templates/layout.html +0 -34
- package/docs/api/build/docs-assets/_templates/matomo.html +0 -18
- package/docs/api/build/docs-assets/_templates/navbar-logo.html +0 -5
- package/docs/api/build/docs-assets/_templates/navbar-nav.html +0 -44
- package/docs/api/build/docs-assets/_templates/prev-next.html +0 -19
- package/docs/api/build/docs-assets/_templates/versioned-canonical.html +0 -8
- package/docs/api/build/docs-assets/themes/inrupt/theme.conf +0 -18
- package/docs/api/build/doctrees/classes/ConfigurationError.doctree +0 -0
- package/docs/api/build/doctrees/classes/InMemoryStorage.doctree +0 -0
- package/docs/api/build/doctrees/classes/NotImplementedError.doctree +0 -0
- package/docs/api/build/doctrees/classes/Session.doctree +0 -0
- package/docs/api/build/doctrees/environment.pickle +0 -0
- package/docs/api/build/doctrees/functions.doctree +0 -0
- package/docs/api/build/doctrees/index.doctree +0 -0
- package/docs/api/build/doctrees/interfaces/ILoginInputOptions.doctree +0 -0
- package/docs/api/build/doctrees/interfaces/ISessionInfo.doctree +0 -0
- package/docs/api/build/doctrees/interfaces/ISessionOptions.doctree +0 -0
- package/docs/api/build/doctrees/interfaces/IStorage.doctree +0 -0
- package/docs/api/build/html/.buildinfo +0 -4
- package/docs/api/build/html/_static/basic.css +0 -905
- package/docs/api/build/html/_static/css/blank.css +0 -2
- package/docs/api/build/html/_static/css/index.ff1ffe594081f20da1ef19478df9384b.css +0 -6
- package/docs/api/build/html/_static/css/inrupt.css +0 -349
- package/docs/api/build/html/_static/css/theme.css +0 -120
- package/docs/api/build/html/_static/doctools.js +0 -323
- package/docs/api/build/html/_static/documentation_options.js +0 -12
- package/docs/api/build/html/_static/file.png +0 -0
- package/docs/api/build/html/_static/jquery-3.5.1.js +0 -10872
- package/docs/api/build/html/_static/jquery.js +0 -2
- package/docs/api/build/html/_static/js/index.be7d3bbb2ef33a8344ce.js +0 -32
- package/docs/api/build/html/_static/language_data.js +0 -297
- package/docs/api/build/html/_static/minus.png +0 -0
- package/docs/api/build/html/_static/plus.png +0 -0
- package/docs/api/build/html/_static/pygments.css +0 -74
- package/docs/api/build/html/_static/searchtools.js +0 -529
- package/docs/api/build/html/_static/underscore-1.13.1.js +0 -2042
- package/docs/api/build/html/_static/underscore.js +0 -6
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/LICENSE.txt +0 -34
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/css/all.min.css +0 -5
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-brands-400.eot +0 -0
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-brands-400.svg +0 -3570
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-brands-400.ttf +0 -0
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-brands-400.woff +0 -0
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-brands-400.woff2 +0 -0
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-regular-400.eot +0 -0
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-regular-400.svg +0 -803
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-regular-400.ttf +0 -0
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-regular-400.woff +0 -0
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-regular-400.woff2 +0 -0
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-solid-900.eot +0 -0
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-solid-900.svg +0 -4938
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-solid-900.ttf +0 -0
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-solid-900.woff +0 -0
- package/docs/api/build/html/_static/vendor/fontawesome/5.13.0/webfonts/fa-solid-900.woff2 +0 -0
- package/docs/api/build/html/_static/webpack-macros.html +0 -25
- package/docs/api/build/html/classes/ConfigurationError.html +0 -726
- package/docs/api/build/html/classes/InMemoryStorage.html +0 -636
- package/docs/api/build/html/classes/NotImplementedError.html +0 -726
- package/docs/api/build/html/classes/Session.html +0 -2428
- package/docs/api/build/html/functions.html +0 -834
- package/docs/api/build/html/genindex.html +0 -311
- package/docs/api/build/html/index.html +0 -342
- package/docs/api/build/html/interfaces/ILoginInputOptions.html +0 -595
- package/docs/api/build/html/interfaces/ISessionInfo.html +0 -481
- package/docs/api/build/html/interfaces/ISessionOptions.html +0 -463
- package/docs/api/build/html/interfaces/IStorage.html +0 -531
- package/docs/api/build/html/objects.inv +0 -0
- package/docs/api/build/html/search.html +0 -340
- package/docs/api/build/html/searchindex.js +0 -1
- package/docs/api/build/source/classes/ConfigurationError.md +0 -159
- package/docs/api/build/source/classes/InMemoryStorage.md +0 -112
- package/docs/api/build/source/classes/NotImplementedError.md +0 -159
- package/docs/api/build/source/classes/Session.md +0 -907
- package/docs/api/build/source/functions.md +0 -235
- package/docs/api/build/source/index.rst +0 -13
- package/docs/api/build/source/interfaces/ILoginInputOptions.md +0 -109
- package/docs/api/build/source/interfaces/ISessionInfo.md +0 -63
- package/docs/api/build/source/interfaces/ISessionOptions.md +0 -60
- package/docs/api/build/source/interfaces/IStorage.md +0 -76
- package/docs/api/conf.py +0 -135
- package/docs/api/redirects.txt +0 -41
- package/docs/api/requirements.txt +0 -5
- package/docs/api/source/api/.nojekyll +0 -1
- package/docs/api/source/api/classes/ConfigurationError.md +0 -163
- package/docs/api/source/api/classes/InMemoryStorage.md +0 -112
- package/docs/api/source/api/classes/NotImplementedError.md +0 -163
- package/docs/api/source/api/classes/Session.md +0 -1426
- package/docs/api/source/api/index.md +0 -251
- package/docs/api/source/api/interfaces/ILoginInputOptions.md +0 -109
- package/docs/api/source/api/interfaces/ISessionInfo.md +0 -63
- package/docs/api/source/api/interfaces/ISessionOptions.md +0 -60
- package/docs/api/source/api/interfaces/IStorage.md +0 -76
- package/docs/api/source/functions.md +0 -3
- package/docs/api/source/index.rst +0 -13
- package/examples/demoAuthentiationMonitor/index.js +0 -34
- package/examples/demoAuthentiationMonitor/package-lock.json +0 -916
- package/examples/demoAuthentiationMonitor/package.json +0 -15
- package/examples/demoClientApp/.babelrc +0 -3
- package/examples/demoClientApp/package-lock.json +0 -11710
- package/examples/demoClientApp/package.json +0 -37
- package/examples/demoClientApp/src/DemoClientApp.js +0 -686
- package/examples/demoClientApp/src/index.html +0 -142
- package/examples/demoClientApp/src/index.js +0 -26
- package/examples/demoClientApp/webpack.config.js +0 -39
- package/examples/single/bundle/.babelrc +0 -3
- package/examples/single/bundle/README.md +0 -11
- package/examples/single/bundle/client-app-profile.ttl +0 -10
- package/examples/single/bundle/package-lock.json +0 -11196
- package/examples/single/bundle/package.json +0 -31
- package/examples/single/bundle/src/App.js +0 -123
- package/examples/single/bundle/src/index.html +0 -10
- package/examples/single/bundle/src/index.js +0 -26
- package/examples/single/bundle/webpack.config.js +0 -33
- package/examples/single/script/README.md +0 -11
- package/examples/single/script/index.html +0 -36
- package/examples/single/script/package-lock.json +0 -1293
- package/examples/single/script/package.json +0 -20
- package/examples/single/script/server.ts +0 -18
- package/jest.config.js +0 -10
- package/licenses.csv +0 -147
- package/rollup.config.js +0 -57
- package/sampleFlows/SolidAuthClientArchitecture.png +0 -0
- package/sampleFlows/authorization-code-with-pkce.png +0 -0
- package/sampleFlows/authorization-code-with-pkce.seqdiag +0 -46
- package/sampleFlows/authorization-code.png +0 -0
- package/sampleFlows/authorization-code.seqdiag +0 -50
- package/sampleFlows/client-credentials.png +0 -0
- package/sampleFlows/client-credentials.seqdiag +0 -38
- package/sampleFlows/legacy-implicit-flow.png +0 -0
- package/sampleFlows/legacy-implicit-flow.seqdiag +0 -43
- package/sampleFlows/self-signed.png +0 -0
- package/sampleFlows/self-signed.seqdiag +0 -49
- package/sampleFlows/signatory-access-control.seqdiag +0 -36
- package/sampleFlows/signatory-access-control.svg +0 -1
- package/tsconfig.eslint.json +0 -6
- package/tsconfig.json +0 -17
|
@@ -1,907 +0,0 @@
|
|
|
1
|
-
[@inrupt/solid-client-authn-browser](../index.md) / Session
|
|
2
|
-
|
|
3
|
-
# Class: Session
|
|
4
|
-
|
|
5
|
-
A [Session](Session.md) object represents a user's session on an application. The session holds state, as it stores information enabling acces to private resources after login for instance.
|
|
6
|
-
|
|
7
|
-
## Hierarchy
|
|
8
|
-
|
|
9
|
-
- `EventEmitter`
|
|
10
|
-
|
|
11
|
-
↳ **`Session`**
|
|
12
|
-
|
|
13
|
-
## Table of contents
|
|
14
|
-
|
|
15
|
-
### Constructors
|
|
16
|
-
|
|
17
|
-
- [constructor](Session.html#constructor)
|
|
18
|
-
|
|
19
|
-
### Properties
|
|
20
|
-
|
|
21
|
-
- [clientAuthentication](Session.html#clientauthentication)
|
|
22
|
-
- [info](Session.html#info)
|
|
23
|
-
- [tmpFetchWithCookies](Session.html#tmpfetchwithcookies)
|
|
24
|
-
- [tokenRequestInProgress](Session.html#tokenrequestinprogress)
|
|
25
|
-
- [captureRejectionSymbol](Session.html#capturerejectionsymbol)
|
|
26
|
-
- [captureRejections](Session.html#capturerejections)
|
|
27
|
-
- [defaultMaxListeners](Session.html#defaultmaxlisteners)
|
|
28
|
-
- [errorMonitor](Session.html#errormonitor)
|
|
29
|
-
|
|
30
|
-
### Methods
|
|
31
|
-
|
|
32
|
-
- [addListener](Session.html#addlistener)
|
|
33
|
-
- [emit](Session.html#emit)
|
|
34
|
-
- [eventNames](Session.html#eventnames)
|
|
35
|
-
- [fetch](Session.html#fetch)
|
|
36
|
-
- [getMaxListeners](Session.html#getmaxlisteners)
|
|
37
|
-
- [handleIncomingRedirect](Session.html#handleincomingredirect)
|
|
38
|
-
- [listenerCount](Session.html#listenercount)
|
|
39
|
-
- [listeners](Session.html#listeners)
|
|
40
|
-
- [login](Session.html#login)
|
|
41
|
-
- [logout](Session.html#logout)
|
|
42
|
-
- [off](Session.html#off)
|
|
43
|
-
- [on](Session.html#on)
|
|
44
|
-
- [onError](Session.html#onerror)
|
|
45
|
-
- [onLogin](Session.html#onlogin)
|
|
46
|
-
- [onLogout](Session.html#onlogout)
|
|
47
|
-
- [onSessionExpiration](Session.html#onsessionexpiration)
|
|
48
|
-
- [onSessionRestore](Session.html#onsessionrestore)
|
|
49
|
-
- [once](Session.html#once)
|
|
50
|
-
- [prependListener](Session.html#prependlistener)
|
|
51
|
-
- [prependOnceListener](Session.html#prependoncelistener)
|
|
52
|
-
- [rawListeners](Session.html#rawlisteners)
|
|
53
|
-
- [removeAllListeners](Session.html#removealllisteners)
|
|
54
|
-
- [removeListener](Session.html#removelistener)
|
|
55
|
-
- [setMaxListeners](Session.html#setmaxlisteners)
|
|
56
|
-
- [setSessionInfo](Session.html#setsessioninfo)
|
|
57
|
-
- [getEventListener](Session.html#geteventlistener)
|
|
58
|
-
- [listenerCount](Session.html#listenercount)
|
|
59
|
-
- [on](Session.html#on)
|
|
60
|
-
- [once](Session.html#once)
|
|
61
|
-
|
|
62
|
-
## Constructors
|
|
63
|
-
|
|
64
|
-
### constructor
|
|
65
|
-
|
|
66
|
-
• **new Session**(`sessionOptions?`, `sessionId?`)
|
|
67
|
-
|
|
68
|
-
Session object constructor. Typically called as follows:
|
|
69
|
-
|
|
70
|
-
```typescript
|
|
71
|
-
const session = new Session();
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
See also [getDefaultSession](https://docs.inrupt.com/developer-tools/api/javascript/solid-client-authn-browser/functions.html#getdefaultsession).
|
|
75
|
-
|
|
76
|
-
#### Parameters
|
|
77
|
-
|
|
78
|
-
| Name | Type | Description |
|
|
79
|
-
| :------ | :------ | :------ |
|
|
80
|
-
| `sessionOptions` | `Partial`<[`ISessionOptions`](../interfaces/ISessionOptions.md)\> | The options enabling the correct instantiation of the session. Either both storages or clientAuthentication are required. For more information, see [ISessionOptions](../interfaces/ISessionOptions.md). |
|
|
81
|
-
| `sessionId?` | `string` | A string uniquely identifying the session. |
|
|
82
|
-
|
|
83
|
-
#### Overrides
|
|
84
|
-
|
|
85
|
-
EventEmitter.constructor
|
|
86
|
-
|
|
87
|
-
#### Defined in
|
|
88
|
-
|
|
89
|
-
[browser/src/Session.ts:173](https://github.com/inrupt/solid-client-authn-js/blob/4bd2cf13/packages/browser/src/Session.ts#L173)
|
|
90
|
-
|
|
91
|
-
## Properties
|
|
92
|
-
|
|
93
|
-
### clientAuthentication
|
|
94
|
-
|
|
95
|
-
• `Private` **clientAuthentication**: `default`
|
|
96
|
-
|
|
97
|
-
#### Defined in
|
|
98
|
-
|
|
99
|
-
[browser/src/Session.ts:151](https://github.com/inrupt/solid-client-authn-js/blob/4bd2cf13/packages/browser/src/Session.ts#L151)
|
|
100
|
-
|
|
101
|
-
___
|
|
102
|
-
|
|
103
|
-
### info
|
|
104
|
-
|
|
105
|
-
• `Readonly` **info**: [`ISessionInfo`](../interfaces/ISessionInfo.md)
|
|
106
|
-
|
|
107
|
-
Information regarding the current session.
|
|
108
|
-
|
|
109
|
-
#### Defined in
|
|
110
|
-
|
|
111
|
-
[browser/src/Session.ts:149](https://github.com/inrupt/solid-client-authn-js/blob/4bd2cf13/packages/browser/src/Session.ts#L149)
|
|
112
|
-
|
|
113
|
-
___
|
|
114
|
-
|
|
115
|
-
### tmpFetchWithCookies
|
|
116
|
-
|
|
117
|
-
• `Private` **tmpFetchWithCookies**: `boolean` = `false`
|
|
118
|
-
|
|
119
|
-
#### Defined in
|
|
120
|
-
|
|
121
|
-
[browser/src/Session.ts:156](https://github.com/inrupt/solid-client-authn-js/blob/4bd2cf13/packages/browser/src/Session.ts#L156)
|
|
122
|
-
|
|
123
|
-
___
|
|
124
|
-
|
|
125
|
-
### tokenRequestInProgress
|
|
126
|
-
|
|
127
|
-
• `Private` **tokenRequestInProgress**: `boolean` = `false`
|
|
128
|
-
|
|
129
|
-
#### Defined in
|
|
130
|
-
|
|
131
|
-
[browser/src/Session.ts:153](https://github.com/inrupt/solid-client-authn-js/blob/4bd2cf13/packages/browser/src/Session.ts#L153)
|
|
132
|
-
|
|
133
|
-
___
|
|
134
|
-
|
|
135
|
-
### captureRejectionSymbol
|
|
136
|
-
|
|
137
|
-
▪ `Static` `Readonly` **captureRejectionSymbol**: typeof [`captureRejectionSymbol`](Session.html#capturerejectionsymbol)
|
|
138
|
-
|
|
139
|
-
#### Inherited from
|
|
140
|
-
|
|
141
|
-
EventEmitter.captureRejectionSymbol
|
|
142
|
-
|
|
143
|
-
#### Defined in
|
|
144
|
-
|
|
145
|
-
browser/node_modules/@types/node/events.d.ts:46
|
|
146
|
-
|
|
147
|
-
___
|
|
148
|
-
|
|
149
|
-
### captureRejections
|
|
150
|
-
|
|
151
|
-
▪ `Static` **captureRejections**: `boolean`
|
|
152
|
-
|
|
153
|
-
Sets or gets the default captureRejection value for all emitters.
|
|
154
|
-
|
|
155
|
-
#### Inherited from
|
|
156
|
-
|
|
157
|
-
EventEmitter.captureRejections
|
|
158
|
-
|
|
159
|
-
#### Defined in
|
|
160
|
-
|
|
161
|
-
browser/node_modules/@types/node/events.d.ts:52
|
|
162
|
-
|
|
163
|
-
___
|
|
164
|
-
|
|
165
|
-
### defaultMaxListeners
|
|
166
|
-
|
|
167
|
-
▪ `Static` **defaultMaxListeners**: `number`
|
|
168
|
-
|
|
169
|
-
#### Inherited from
|
|
170
|
-
|
|
171
|
-
EventEmitter.defaultMaxListeners
|
|
172
|
-
|
|
173
|
-
#### Defined in
|
|
174
|
-
|
|
175
|
-
browser/node_modules/@types/node/events.d.ts:53
|
|
176
|
-
|
|
177
|
-
___
|
|
178
|
-
|
|
179
|
-
### errorMonitor
|
|
180
|
-
|
|
181
|
-
▪ `Static` `Readonly` **errorMonitor**: typeof [`errorMonitor`](Session.html#errormonitor)
|
|
182
|
-
|
|
183
|
-
This symbol shall be used to install a listener for only monitoring `'error'`
|
|
184
|
-
events. Listeners installed using this symbol are called before the regular
|
|
185
|
-
`'error'` listeners are called.
|
|
186
|
-
|
|
187
|
-
Installing a listener using this symbol does not change the behavior once an
|
|
188
|
-
`'error'` event is emitted, therefore the process will still crash if no
|
|
189
|
-
regular `'error'` listener is installed.
|
|
190
|
-
|
|
191
|
-
#### Inherited from
|
|
192
|
-
|
|
193
|
-
EventEmitter.errorMonitor
|
|
194
|
-
|
|
195
|
-
#### Defined in
|
|
196
|
-
|
|
197
|
-
browser/node_modules/@types/node/events.d.ts:45
|
|
198
|
-
|
|
199
|
-
## Methods
|
|
200
|
-
|
|
201
|
-
### addListener
|
|
202
|
-
|
|
203
|
-
▸ **addListener**(`event`, `listener`): [`Session`](Session.md)
|
|
204
|
-
|
|
205
|
-
#### Parameters
|
|
206
|
-
|
|
207
|
-
| Name | Type |
|
|
208
|
-
| :------ | :------ |
|
|
209
|
-
| `event` | `string` \| `symbol` |
|
|
210
|
-
| `listener` | (...`args`: `any`[]) => `void` |
|
|
211
|
-
|
|
212
|
-
#### Returns
|
|
213
|
-
|
|
214
|
-
[`Session`](Session.md)
|
|
215
|
-
|
|
216
|
-
#### Inherited from
|
|
217
|
-
|
|
218
|
-
EventEmitter.addListener
|
|
219
|
-
|
|
220
|
-
#### Defined in
|
|
221
|
-
|
|
222
|
-
browser/node_modules/@types/node/events.d.ts:72
|
|
223
|
-
|
|
224
|
-
___
|
|
225
|
-
|
|
226
|
-
### emit
|
|
227
|
-
|
|
228
|
-
▸ **emit**(`event`, ...`args`): `boolean`
|
|
229
|
-
|
|
230
|
-
#### Parameters
|
|
231
|
-
|
|
232
|
-
| Name | Type |
|
|
233
|
-
| :------ | :------ |
|
|
234
|
-
| `event` | `string` \| `symbol` |
|
|
235
|
-
| `...args` | `any`[] |
|
|
236
|
-
|
|
237
|
-
#### Returns
|
|
238
|
-
|
|
239
|
-
`boolean`
|
|
240
|
-
|
|
241
|
-
#### Inherited from
|
|
242
|
-
|
|
243
|
-
EventEmitter.emit
|
|
244
|
-
|
|
245
|
-
#### Defined in
|
|
246
|
-
|
|
247
|
-
browser/node_modules/@types/node/events.d.ts:82
|
|
248
|
-
|
|
249
|
-
___
|
|
250
|
-
|
|
251
|
-
### eventNames
|
|
252
|
-
|
|
253
|
-
▸ **eventNames**(): (`string` \| `symbol`)[]
|
|
254
|
-
|
|
255
|
-
#### Returns
|
|
256
|
-
|
|
257
|
-
(`string` \| `symbol`)[]
|
|
258
|
-
|
|
259
|
-
#### Inherited from
|
|
260
|
-
|
|
261
|
-
EventEmitter.eventNames
|
|
262
|
-
|
|
263
|
-
#### Defined in
|
|
264
|
-
|
|
265
|
-
browser/node_modules/@types/node/events.d.ts:87
|
|
266
|
-
|
|
267
|
-
___
|
|
268
|
-
|
|
269
|
-
### fetch
|
|
270
|
-
|
|
271
|
-
▸ **fetch**(`url`, `init?`): `Promise`<`Response`\>
|
|
272
|
-
|
|
273
|
-
Fetches data using available login information. If the user is not logged in, this will behave as a regular `fetch`. The signature of this method is identical to the [canonical `fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API).
|
|
274
|
-
|
|
275
|
-
#### Parameters
|
|
276
|
-
|
|
277
|
-
| Name | Type | Description |
|
|
278
|
-
| :------ | :------ | :------ |
|
|
279
|
-
| `url` | `RequestInfo` | The URL from which data should be fetched. |
|
|
280
|
-
| `init?` | `RequestInit` | Optional parameters customizing the request, by specifying an HTTP method, headers, a body, etc. Follows the [WHATWG Fetch Standard](https://fetch.spec.whatwg.org/). |
|
|
281
|
-
|
|
282
|
-
#### Returns
|
|
283
|
-
|
|
284
|
-
`Promise`<`Response`\>
|
|
285
|
-
|
|
286
|
-
#### Defined in
|
|
287
|
-
|
|
288
|
-
[browser/src/Session.ts:265](https://github.com/inrupt/solid-client-authn-js/blob/4bd2cf13/packages/browser/src/Session.ts#L265)
|
|
289
|
-
|
|
290
|
-
___
|
|
291
|
-
|
|
292
|
-
### getMaxListeners
|
|
293
|
-
|
|
294
|
-
▸ **getMaxListeners**(): `number`
|
|
295
|
-
|
|
296
|
-
#### Returns
|
|
297
|
-
|
|
298
|
-
`number`
|
|
299
|
-
|
|
300
|
-
#### Inherited from
|
|
301
|
-
|
|
302
|
-
EventEmitter.getMaxListeners
|
|
303
|
-
|
|
304
|
-
#### Defined in
|
|
305
|
-
|
|
306
|
-
browser/node_modules/@types/node/events.d.ts:79
|
|
307
|
-
|
|
308
|
-
___
|
|
309
|
-
|
|
310
|
-
### handleIncomingRedirect
|
|
311
|
-
|
|
312
|
-
▸ **handleIncomingRedirect**(`inputOptions?`): `Promise`<`undefined` \| [`ISessionInfo`](../interfaces/ISessionInfo.md)\>
|
|
313
|
-
|
|
314
|
-
Completes the login process by processing the information provided by the
|
|
315
|
-
Solid identity provider through redirect.
|
|
316
|
-
|
|
317
|
-
#### Parameters
|
|
318
|
-
|
|
319
|
-
| Name | Type |
|
|
320
|
-
| :------ | :------ |
|
|
321
|
-
| `inputOptions` | `string` \| `IHandleIncomingRedirectOptions` |
|
|
322
|
-
|
|
323
|
-
#### Returns
|
|
324
|
-
|
|
325
|
-
`Promise`<`undefined` \| [`ISessionInfo`](../interfaces/ISessionInfo.md)\>
|
|
326
|
-
|
|
327
|
-
#### Defined in
|
|
328
|
-
|
|
329
|
-
[browser/src/Session.ts:292](https://github.com/inrupt/solid-client-authn-js/blob/4bd2cf13/packages/browser/src/Session.ts#L292)
|
|
330
|
-
|
|
331
|
-
___
|
|
332
|
-
|
|
333
|
-
### listenerCount
|
|
334
|
-
|
|
335
|
-
▸ **listenerCount**(`event`): `number`
|
|
336
|
-
|
|
337
|
-
#### Parameters
|
|
338
|
-
|
|
339
|
-
| Name | Type |
|
|
340
|
-
| :------ | :------ |
|
|
341
|
-
| `event` | `string` \| `symbol` |
|
|
342
|
-
|
|
343
|
-
#### Returns
|
|
344
|
-
|
|
345
|
-
`number`
|
|
346
|
-
|
|
347
|
-
#### Inherited from
|
|
348
|
-
|
|
349
|
-
EventEmitter.listenerCount
|
|
350
|
-
|
|
351
|
-
#### Defined in
|
|
352
|
-
|
|
353
|
-
browser/node_modules/@types/node/events.d.ts:83
|
|
354
|
-
|
|
355
|
-
___
|
|
356
|
-
|
|
357
|
-
### listeners
|
|
358
|
-
|
|
359
|
-
▸ **listeners**(`event`): `Function`[]
|
|
360
|
-
|
|
361
|
-
#### Parameters
|
|
362
|
-
|
|
363
|
-
| Name | Type |
|
|
364
|
-
| :------ | :------ |
|
|
365
|
-
| `event` | `string` \| `symbol` |
|
|
366
|
-
|
|
367
|
-
#### Returns
|
|
368
|
-
|
|
369
|
-
`Function`[]
|
|
370
|
-
|
|
371
|
-
#### Inherited from
|
|
372
|
-
|
|
373
|
-
EventEmitter.listeners
|
|
374
|
-
|
|
375
|
-
#### Defined in
|
|
376
|
-
|
|
377
|
-
browser/node_modules/@types/node/events.d.ts:80
|
|
378
|
-
|
|
379
|
-
___
|
|
380
|
-
|
|
381
|
-
### login
|
|
382
|
-
|
|
383
|
-
▸ **login**(`options`): `Promise`<`void`\>
|
|
384
|
-
|
|
385
|
-
Triggers the login process. Note that this method will redirect the user away from your app.
|
|
386
|
-
|
|
387
|
-
#### Parameters
|
|
388
|
-
|
|
389
|
-
| Name | Type | Description |
|
|
390
|
-
| :------ | :------ | :------ |
|
|
391
|
-
| `options` | [`ILoginInputOptions`](../interfaces/ILoginInputOptions.md) | Parameter to customize the login behaviour. In particular, two options are mandatory: `options.oidcIssuer`, the user's identity provider, and `options.redirectUrl`, the URL to which the user will be redirected after logging in their identity provider. |
|
|
392
|
-
|
|
393
|
-
#### Returns
|
|
394
|
-
|
|
395
|
-
`Promise`<`void`\>
|
|
396
|
-
|
|
397
|
-
This method should redirect the user away from the app: it does not return anything. The login process is completed by [`handleIncomingRedirect`](Session.html#handleincomingredirect).
|
|
398
|
-
|
|
399
|
-
#### Defined in
|
|
400
|
-
|
|
401
|
-
[browser/src/Session.ts:242](https://github.com/inrupt/solid-client-authn-js/blob/4bd2cf13/packages/browser/src/Session.ts#L242)
|
|
402
|
-
|
|
403
|
-
___
|
|
404
|
-
|
|
405
|
-
### logout
|
|
406
|
-
|
|
407
|
-
▸ **logout**(): `Promise`<`void`\>
|
|
408
|
-
|
|
409
|
-
Logs the user out of the application. This does not log the user out of their Solid identity provider, and should not redirect the user away.
|
|
410
|
-
|
|
411
|
-
#### Returns
|
|
412
|
-
|
|
413
|
-
`Promise`<`void`\>
|
|
414
|
-
|
|
415
|
-
#### Defined in
|
|
416
|
-
|
|
417
|
-
[browser/src/Session.ts:279](https://github.com/inrupt/solid-client-authn-js/blob/4bd2cf13/packages/browser/src/Session.ts#L279)
|
|
418
|
-
|
|
419
|
-
___
|
|
420
|
-
|
|
421
|
-
### off
|
|
422
|
-
|
|
423
|
-
▸ **off**(`event`, `listener`): [`Session`](Session.md)
|
|
424
|
-
|
|
425
|
-
#### Parameters
|
|
426
|
-
|
|
427
|
-
| Name | Type |
|
|
428
|
-
| :------ | :------ |
|
|
429
|
-
| `event` | `string` \| `symbol` |
|
|
430
|
-
| `listener` | (...`args`: `any`[]) => `void` |
|
|
431
|
-
|
|
432
|
-
#### Returns
|
|
433
|
-
|
|
434
|
-
[`Session`](Session.md)
|
|
435
|
-
|
|
436
|
-
#### Inherited from
|
|
437
|
-
|
|
438
|
-
EventEmitter.off
|
|
439
|
-
|
|
440
|
-
#### Defined in
|
|
441
|
-
|
|
442
|
-
browser/node_modules/@types/node/events.d.ts:76
|
|
443
|
-
|
|
444
|
-
___
|
|
445
|
-
|
|
446
|
-
### on
|
|
447
|
-
|
|
448
|
-
▸ **on**(`event`, `listener`): [`Session`](Session.md)
|
|
449
|
-
|
|
450
|
-
#### Parameters
|
|
451
|
-
|
|
452
|
-
| Name | Type |
|
|
453
|
-
| :------ | :------ |
|
|
454
|
-
| `event` | `string` \| `symbol` |
|
|
455
|
-
| `listener` | (...`args`: `any`[]) => `void` |
|
|
456
|
-
|
|
457
|
-
#### Returns
|
|
458
|
-
|
|
459
|
-
[`Session`](Session.md)
|
|
460
|
-
|
|
461
|
-
#### Inherited from
|
|
462
|
-
|
|
463
|
-
EventEmitter.on
|
|
464
|
-
|
|
465
|
-
#### Defined in
|
|
466
|
-
|
|
467
|
-
browser/node_modules/@types/node/events.d.ts:73
|
|
468
|
-
|
|
469
|
-
___
|
|
470
|
-
|
|
471
|
-
### onError
|
|
472
|
-
|
|
473
|
-
▸ **onError**(`callback`): `void`
|
|
474
|
-
|
|
475
|
-
Register a callback function to be called when a user logs out:
|
|
476
|
-
|
|
477
|
-
**`since`** 1.11.0
|
|
478
|
-
|
|
479
|
-
#### Parameters
|
|
480
|
-
|
|
481
|
-
| Name | Type | Description |
|
|
482
|
-
| :------ | :------ | :------ |
|
|
483
|
-
| `callback` | (`error`: ``null`` \| `string`, `errorDescription?`: ``null`` \| `string`) => `unknown` | The function called when an error occurs. |
|
|
484
|
-
|
|
485
|
-
#### Returns
|
|
486
|
-
|
|
487
|
-
`void`
|
|
488
|
-
|
|
489
|
-
#### Defined in
|
|
490
|
-
|
|
491
|
-
[browser/src/Session.ts:465](https://github.com/inrupt/solid-client-authn-js/blob/4bd2cf13/packages/browser/src/Session.ts#L465)
|
|
492
|
-
|
|
493
|
-
___
|
|
494
|
-
|
|
495
|
-
### onLogin
|
|
496
|
-
|
|
497
|
-
▸ **onLogin**(`callback`): `void`
|
|
498
|
-
|
|
499
|
-
Register a callback function to be called when a user completes login.
|
|
500
|
-
|
|
501
|
-
The callback is called when [handleIncomingRedirect](Session.html#handleincomingredirect) completes successfully.
|
|
502
|
-
|
|
503
|
-
#### Parameters
|
|
504
|
-
|
|
505
|
-
| Name | Type | Description |
|
|
506
|
-
| :------ | :------ | :------ |
|
|
507
|
-
| `callback` | () => `unknown` | The function called when a user completes login. |
|
|
508
|
-
|
|
509
|
-
#### Returns
|
|
510
|
-
|
|
511
|
-
`void`
|
|
512
|
-
|
|
513
|
-
#### Defined in
|
|
514
|
-
|
|
515
|
-
[browser/src/Session.ts:446](https://github.com/inrupt/solid-client-authn-js/blob/4bd2cf13/packages/browser/src/Session.ts#L446)
|
|
516
|
-
|
|
517
|
-
___
|
|
518
|
-
|
|
519
|
-
### onLogout
|
|
520
|
-
|
|
521
|
-
▸ **onLogout**(`callback`): `void`
|
|
522
|
-
|
|
523
|
-
Register a callback function to be called when a user logs out:
|
|
524
|
-
|
|
525
|
-
#### Parameters
|
|
526
|
-
|
|
527
|
-
| Name | Type | Description |
|
|
528
|
-
| :------ | :------ | :------ |
|
|
529
|
-
| `callback` | () => `unknown` | The function called when a user completes logout. |
|
|
530
|
-
|
|
531
|
-
#### Returns
|
|
532
|
-
|
|
533
|
-
`void`
|
|
534
|
-
|
|
535
|
-
#### Defined in
|
|
536
|
-
|
|
537
|
-
[browser/src/Session.ts:455](https://github.com/inrupt/solid-client-authn-js/blob/4bd2cf13/packages/browser/src/Session.ts#L455)
|
|
538
|
-
|
|
539
|
-
___
|
|
540
|
-
|
|
541
|
-
### onSessionExpiration
|
|
542
|
-
|
|
543
|
-
▸ **onSessionExpiration**(`callback`): `void`
|
|
544
|
-
|
|
545
|
-
Register a callback that runs when the session expires and can no longer
|
|
546
|
-
make authenticated requests, but following a user logout.
|
|
547
|
-
|
|
548
|
-
**`since`** 1.11.0
|
|
549
|
-
|
|
550
|
-
#### Parameters
|
|
551
|
-
|
|
552
|
-
| Name | Type | Description |
|
|
553
|
-
| :------ | :------ | :------ |
|
|
554
|
-
| `callback` | () => `unknown` | The function that runs on session expiration. |
|
|
555
|
-
|
|
556
|
-
#### Returns
|
|
557
|
-
|
|
558
|
-
`void`
|
|
559
|
-
|
|
560
|
-
#### Defined in
|
|
561
|
-
|
|
562
|
-
[browser/src/Session.ts:492](https://github.com/inrupt/solid-client-authn-js/blob/4bd2cf13/packages/browser/src/Session.ts#L492)
|
|
563
|
-
|
|
564
|
-
___
|
|
565
|
-
|
|
566
|
-
### onSessionRestore
|
|
567
|
-
|
|
568
|
-
▸ **onSessionRestore**(`callback`): `void`
|
|
569
|
-
|
|
570
|
-
Register a callback function to be called when a session is restored.
|
|
571
|
-
|
|
572
|
-
Note: the callback will be called with the saved value of the 'current URL'
|
|
573
|
-
at the time the session was restored.
|
|
574
|
-
|
|
575
|
-
#### Parameters
|
|
576
|
-
|
|
577
|
-
| Name | Type | Description |
|
|
578
|
-
| :------ | :------ | :------ |
|
|
579
|
-
| `callback` | (`currentUrl`: `string`) => `unknown` | The function called when a user's already logged-in session is restored, e.g., after a silent authentication is completed after a page refresh. |
|
|
580
|
-
|
|
581
|
-
#### Returns
|
|
582
|
-
|
|
583
|
-
`void`
|
|
584
|
-
|
|
585
|
-
#### Defined in
|
|
586
|
-
|
|
587
|
-
[browser/src/Session.ts:482](https://github.com/inrupt/solid-client-authn-js/blob/4bd2cf13/packages/browser/src/Session.ts#L482)
|
|
588
|
-
|
|
589
|
-
___
|
|
590
|
-
|
|
591
|
-
### once
|
|
592
|
-
|
|
593
|
-
▸ **once**(`event`, `listener`): [`Session`](Session.md)
|
|
594
|
-
|
|
595
|
-
#### Parameters
|
|
596
|
-
|
|
597
|
-
| Name | Type |
|
|
598
|
-
| :------ | :------ |
|
|
599
|
-
| `event` | `string` \| `symbol` |
|
|
600
|
-
| `listener` | (...`args`: `any`[]) => `void` |
|
|
601
|
-
|
|
602
|
-
#### Returns
|
|
603
|
-
|
|
604
|
-
[`Session`](Session.md)
|
|
605
|
-
|
|
606
|
-
#### Inherited from
|
|
607
|
-
|
|
608
|
-
EventEmitter.once
|
|
609
|
-
|
|
610
|
-
#### Defined in
|
|
611
|
-
|
|
612
|
-
browser/node_modules/@types/node/events.d.ts:74
|
|
613
|
-
|
|
614
|
-
___
|
|
615
|
-
|
|
616
|
-
### prependListener
|
|
617
|
-
|
|
618
|
-
▸ **prependListener**(`event`, `listener`): [`Session`](Session.md)
|
|
619
|
-
|
|
620
|
-
#### Parameters
|
|
621
|
-
|
|
622
|
-
| Name | Type |
|
|
623
|
-
| :------ | :------ |
|
|
624
|
-
| `event` | `string` \| `symbol` |
|
|
625
|
-
| `listener` | (...`args`: `any`[]) => `void` |
|
|
626
|
-
|
|
627
|
-
#### Returns
|
|
628
|
-
|
|
629
|
-
[`Session`](Session.md)
|
|
630
|
-
|
|
631
|
-
#### Inherited from
|
|
632
|
-
|
|
633
|
-
EventEmitter.prependListener
|
|
634
|
-
|
|
635
|
-
#### Defined in
|
|
636
|
-
|
|
637
|
-
browser/node_modules/@types/node/events.d.ts:85
|
|
638
|
-
|
|
639
|
-
___
|
|
640
|
-
|
|
641
|
-
### prependOnceListener
|
|
642
|
-
|
|
643
|
-
▸ **prependOnceListener**(`event`, `listener`): [`Session`](Session.md)
|
|
644
|
-
|
|
645
|
-
#### Parameters
|
|
646
|
-
|
|
647
|
-
| Name | Type |
|
|
648
|
-
| :------ | :------ |
|
|
649
|
-
| `event` | `string` \| `symbol` |
|
|
650
|
-
| `listener` | (...`args`: `any`[]) => `void` |
|
|
651
|
-
|
|
652
|
-
#### Returns
|
|
653
|
-
|
|
654
|
-
[`Session`](Session.md)
|
|
655
|
-
|
|
656
|
-
#### Inherited from
|
|
657
|
-
|
|
658
|
-
EventEmitter.prependOnceListener
|
|
659
|
-
|
|
660
|
-
#### Defined in
|
|
661
|
-
|
|
662
|
-
browser/node_modules/@types/node/events.d.ts:86
|
|
663
|
-
|
|
664
|
-
___
|
|
665
|
-
|
|
666
|
-
### rawListeners
|
|
667
|
-
|
|
668
|
-
▸ **rawListeners**(`event`): `Function`[]
|
|
669
|
-
|
|
670
|
-
#### Parameters
|
|
671
|
-
|
|
672
|
-
| Name | Type |
|
|
673
|
-
| :------ | :------ |
|
|
674
|
-
| `event` | `string` \| `symbol` |
|
|
675
|
-
|
|
676
|
-
#### Returns
|
|
677
|
-
|
|
678
|
-
`Function`[]
|
|
679
|
-
|
|
680
|
-
#### Inherited from
|
|
681
|
-
|
|
682
|
-
EventEmitter.rawListeners
|
|
683
|
-
|
|
684
|
-
#### Defined in
|
|
685
|
-
|
|
686
|
-
browser/node_modules/@types/node/events.d.ts:81
|
|
687
|
-
|
|
688
|
-
___
|
|
689
|
-
|
|
690
|
-
### removeAllListeners
|
|
691
|
-
|
|
692
|
-
▸ **removeAllListeners**(`event?`): [`Session`](Session.md)
|
|
693
|
-
|
|
694
|
-
#### Parameters
|
|
695
|
-
|
|
696
|
-
| Name | Type |
|
|
697
|
-
| :------ | :------ |
|
|
698
|
-
| `event?` | `string` \| `symbol` |
|
|
699
|
-
|
|
700
|
-
#### Returns
|
|
701
|
-
|
|
702
|
-
[`Session`](Session.md)
|
|
703
|
-
|
|
704
|
-
#### Inherited from
|
|
705
|
-
|
|
706
|
-
EventEmitter.removeAllListeners
|
|
707
|
-
|
|
708
|
-
#### Defined in
|
|
709
|
-
|
|
710
|
-
browser/node_modules/@types/node/events.d.ts:77
|
|
711
|
-
|
|
712
|
-
___
|
|
713
|
-
|
|
714
|
-
### removeListener
|
|
715
|
-
|
|
716
|
-
▸ **removeListener**(`event`, `listener`): [`Session`](Session.md)
|
|
717
|
-
|
|
718
|
-
#### Parameters
|
|
719
|
-
|
|
720
|
-
| Name | Type |
|
|
721
|
-
| :------ | :------ |
|
|
722
|
-
| `event` | `string` \| `symbol` |
|
|
723
|
-
| `listener` | (...`args`: `any`[]) => `void` |
|
|
724
|
-
|
|
725
|
-
#### Returns
|
|
726
|
-
|
|
727
|
-
[`Session`](Session.md)
|
|
728
|
-
|
|
729
|
-
#### Inherited from
|
|
730
|
-
|
|
731
|
-
EventEmitter.removeListener
|
|
732
|
-
|
|
733
|
-
#### Defined in
|
|
734
|
-
|
|
735
|
-
browser/node_modules/@types/node/events.d.ts:75
|
|
736
|
-
|
|
737
|
-
___
|
|
738
|
-
|
|
739
|
-
### setMaxListeners
|
|
740
|
-
|
|
741
|
-
▸ **setMaxListeners**(`n`): [`Session`](Session.md)
|
|
742
|
-
|
|
743
|
-
#### Parameters
|
|
744
|
-
|
|
745
|
-
| Name | Type |
|
|
746
|
-
| :------ | :------ |
|
|
747
|
-
| `n` | `number` |
|
|
748
|
-
|
|
749
|
-
#### Returns
|
|
750
|
-
|
|
751
|
-
[`Session`](Session.md)
|
|
752
|
-
|
|
753
|
-
#### Inherited from
|
|
754
|
-
|
|
755
|
-
EventEmitter.setMaxListeners
|
|
756
|
-
|
|
757
|
-
#### Defined in
|
|
758
|
-
|
|
759
|
-
browser/node_modules/@types/node/events.d.ts:78
|
|
760
|
-
|
|
761
|
-
___
|
|
762
|
-
|
|
763
|
-
### setSessionInfo
|
|
764
|
-
|
|
765
|
-
▸ `Private` **setSessionInfo**(`sessionInfo`): `void`
|
|
766
|
-
|
|
767
|
-
#### Parameters
|
|
768
|
-
|
|
769
|
-
| Name | Type |
|
|
770
|
-
| :------ | :------ |
|
|
771
|
-
| `sessionInfo` | [`ISessionInfo`](../interfaces/ISessionInfo.md) & { `isLoggedIn`: ``true`` } |
|
|
772
|
-
|
|
773
|
-
#### Returns
|
|
774
|
-
|
|
775
|
-
`void`
|
|
776
|
-
|
|
777
|
-
#### Defined in
|
|
778
|
-
|
|
779
|
-
[browser/src/Session.ts:496](https://github.com/inrupt/solid-client-authn-js/blob/4bd2cf13/packages/browser/src/Session.ts#L496)
|
|
780
|
-
|
|
781
|
-
___
|
|
782
|
-
|
|
783
|
-
### getEventListener
|
|
784
|
-
|
|
785
|
-
▸ `Static` **getEventListener**(`emitter`, `name`): `Function`[]
|
|
786
|
-
|
|
787
|
-
Returns a list listener for a specific emitter event name.
|
|
788
|
-
|
|
789
|
-
#### Parameters
|
|
790
|
-
|
|
791
|
-
| Name | Type |
|
|
792
|
-
| :------ | :------ |
|
|
793
|
-
| `emitter` | `DOMEventTarget` \| `EventEmitter` |
|
|
794
|
-
| `name` | `string` \| `symbol` |
|
|
795
|
-
|
|
796
|
-
#### Returns
|
|
797
|
-
|
|
798
|
-
`Function`[]
|
|
799
|
-
|
|
800
|
-
#### Inherited from
|
|
801
|
-
|
|
802
|
-
EventEmitter.getEventListener
|
|
803
|
-
|
|
804
|
-
#### Defined in
|
|
805
|
-
|
|
806
|
-
browser/node_modules/@types/node/events.d.ts:34
|
|
807
|
-
|
|
808
|
-
___
|
|
809
|
-
|
|
810
|
-
### listenerCount
|
|
811
|
-
|
|
812
|
-
▸ `Static` **listenerCount**(`emitter`, `event`): `number`
|
|
813
|
-
|
|
814
|
-
**`deprecated`** since v4.0.0
|
|
815
|
-
|
|
816
|
-
#### Parameters
|
|
817
|
-
|
|
818
|
-
| Name | Type |
|
|
819
|
-
| :------ | :------ |
|
|
820
|
-
| `emitter` | `EventEmitter` |
|
|
821
|
-
| `event` | `string` \| `symbol` |
|
|
822
|
-
|
|
823
|
-
#### Returns
|
|
824
|
-
|
|
825
|
-
`number`
|
|
826
|
-
|
|
827
|
-
#### Inherited from
|
|
828
|
-
|
|
829
|
-
EventEmitter.listenerCount
|
|
830
|
-
|
|
831
|
-
#### Defined in
|
|
832
|
-
|
|
833
|
-
browser/node_modules/@types/node/events.d.ts:30
|
|
834
|
-
|
|
835
|
-
___
|
|
836
|
-
|
|
837
|
-
### on
|
|
838
|
-
|
|
839
|
-
▸ `Static` **on**(`emitter`, `event`, `options?`): `AsyncIterableIterator`<`any`\>
|
|
840
|
-
|
|
841
|
-
#### Parameters
|
|
842
|
-
|
|
843
|
-
| Name | Type |
|
|
844
|
-
| :------ | :------ |
|
|
845
|
-
| `emitter` | `EventEmitter` |
|
|
846
|
-
| `event` | `string` |
|
|
847
|
-
| `options?` | `StaticEventEmitterOptions` |
|
|
848
|
-
|
|
849
|
-
#### Returns
|
|
850
|
-
|
|
851
|
-
`AsyncIterableIterator`<`any`\>
|
|
852
|
-
|
|
853
|
-
#### Inherited from
|
|
854
|
-
|
|
855
|
-
EventEmitter.on
|
|
856
|
-
|
|
857
|
-
#### Defined in
|
|
858
|
-
|
|
859
|
-
browser/node_modules/@types/node/events.d.ts:27
|
|
860
|
-
|
|
861
|
-
___
|
|
862
|
-
|
|
863
|
-
### once
|
|
864
|
-
|
|
865
|
-
▸ `Static` **once**(`emitter`, `event`, `options?`): `Promise`<`any`[]\>
|
|
866
|
-
|
|
867
|
-
#### Parameters
|
|
868
|
-
|
|
869
|
-
| Name | Type |
|
|
870
|
-
| :------ | :------ |
|
|
871
|
-
| `emitter` | `NodeEventTarget` |
|
|
872
|
-
| `event` | `string` \| `symbol` |
|
|
873
|
-
| `options?` | `StaticEventEmitterOptions` |
|
|
874
|
-
|
|
875
|
-
#### Returns
|
|
876
|
-
|
|
877
|
-
`Promise`<`any`[]\>
|
|
878
|
-
|
|
879
|
-
#### Inherited from
|
|
880
|
-
|
|
881
|
-
EventEmitter.once
|
|
882
|
-
|
|
883
|
-
#### Defined in
|
|
884
|
-
|
|
885
|
-
browser/node_modules/@types/node/events.d.ts:25
|
|
886
|
-
|
|
887
|
-
▸ `Static` **once**(`emitter`, `event`, `options?`): `Promise`<`any`[]\>
|
|
888
|
-
|
|
889
|
-
#### Parameters
|
|
890
|
-
|
|
891
|
-
| Name | Type |
|
|
892
|
-
| :------ | :------ |
|
|
893
|
-
| `emitter` | `DOMEventTarget` |
|
|
894
|
-
| `event` | `string` |
|
|
895
|
-
| `options?` | `StaticEventEmitterOptions` |
|
|
896
|
-
|
|
897
|
-
#### Returns
|
|
898
|
-
|
|
899
|
-
`Promise`<`any`[]\>
|
|
900
|
-
|
|
901
|
-
#### Inherited from
|
|
902
|
-
|
|
903
|
-
EventEmitter.once
|
|
904
|
-
|
|
905
|
-
#### Defined in
|
|
906
|
-
|
|
907
|
-
browser/node_modules/@types/node/events.d.ts:26
|