Skip to content

Commit 62b3720

Browse files
megothVinnl
andauthored
Update src/authn/authn.ts
Co-Authored-By: Vincent <Vinnl@users.noreply.github.com>
1 parent 93816ec commit 62b3720

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/authn/authn.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export { solidAuthClient }
2323

2424
// Look for and load the User who has control over it
2525
export function findOriginOwner (doc: $rdf.NamedNode | string): string | boolean {
26-
const uri = (doc as $rdf.NamedNode).uri || doc as string
26+
const uri = (typeof doc === 'string') ? doc : doc.uri
2727
const i = uri.indexOf('://')
2828
if (i < 0) return false
2929
const j = uri.indexOf('/', i + 3)

0 commit comments

Comments
 (0)