Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Switch to solid-client-authn-js #6

@erikhofer

Description

@erikhofer

The readme shows the use of solid-auth-client which is deprecated. The current default is solid-client-authn-js. It works fine at runtime, but TypeScript rejects the fetch method. You have to do something like this to make it compile.

import { Session } from '@inrupt/solid-client-authn-browser'
import Soukai from 'soukai'
import SoukaiSolid, { SolidEngine } from 'soukai-solid'

const session = new Session()

SoukaiSolid.loadSolidModels()
// eslint-disable-next-line react-hooks/rules-of-hooks
Soukai.useEngine(new SolidEngine(session.fetch as any))

Also the readme should be updated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions