feat: Add index signature to Credentials

* feat: abstract Credentials type for Authorizer

* feat: abstract Credentials type in CredentialsExtractor & PermissionReader

* chore: typegraphical corrections in documentation

Co-authored-by: Ted Thibodeau Jr <tthibodeau@openlinksw.com>

* fix: remove accidental .js extension

* feat: also check for undefined credentials when deciding 401/404

* docs: corrections to code documentation

Co-authored-by: Ted Thibodeau Jr <tthibodeau@openlinksw.com>

* fix: revert abstraction & index signature to Credentials

* chhore: fix linter issues

---------

Co-authored-by: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
This commit is contained in:
Wouter Termont
2023-11-10 08:10:10 +01:00
committed by GitHub
parent e7d8081aff
commit 86f45923ba
4 changed files with 10 additions and 7 deletions

View File

@@ -5,4 +5,5 @@ export type Credentials = {
agent?: { webId: string };
client?: { clientId: string };
issuer?: { url: string };
[key: string]: unknown;
};