A library of helper functions for developing Solid apps in TypeScript/JavaScript.
This package is a bundle of all helper functions defined in SolidLabLib. These functions can also be installed separately.
$ npm install @solidlab/lib
or
$ yarn add @solidlab/lib
This canonical package of this function is @solidlab/idp
@solidlab/idp
The identity provider of a WebID can be determined as follows:
import { getIdp } from '@solidlab/lib'; await getIdp('https://rubensworks.solidcommunity.net/profile/card#me');
If you have an authenticated Solid session object, you can determine its IDP as follows:
const getIdpWithSession = getIdp.with({ session }); await getIdpWithSession(session.info.webId);
If you want to use a custom query engine instead of the default one, make sure to use the light version of this package, which enables the default query engine to be tree-shaked out during bundling:
light
import { getIdp } from '@solidlab/lib/light'; const getIdpWithEngine = getIdp.with({ engine: new CustomQueryEngine() }); await getIdpWithEngine('https://rubensworks.solidcommunity.net/profile/card#me');
await getIdp(session.info.webId, defaultSolidUtilContext(session));
This code is copyrighted by Ghent University – imec and released under the MIT license.
Generated using TypeDoc
SolidLabLib.js - Lib
A library of helper functions for developing Solid apps in TypeScript/JavaScript.
This package is a bundle of all helper functions defined in SolidLabLib. These functions can also be installed separately.
Requirements
Installation
or
Usage
Obtain the identity provider
This canonical package of this function is
@solidlab/idp
The identity provider of a WebID can be determined as follows:
If you have an authenticated Solid session object, you can determine its IDP as follows:
If you want to use a custom query engine instead of the default one, make sure to use the
light
version of this package, which enables the default query engine to be tree-shaked out during bundling:If you have an authenticated Solid session object, you can determine its IDP as follows:
License
This code is copyrighted by Ghent University – imec and released under the MIT license.