Skip to content

Commit

Permalink
feat: Export UnsecureConstantCredentialsExtractor.
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenVerborgh committed Jan 15, 2021
1 parent 7dcde1e commit 5429014
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/authentication/UnsecureConstantCredentialsExtractor.ts
Expand Up @@ -10,6 +10,8 @@ export class UnsecureConstantCredentialsExtractor extends CredentialsExtractor {
private readonly agent: Credentials;
private readonly logger = getLoggerFor(this);

public constructor(agent: string);
public constructor(agent: Credentials);
public constructor(agent: string | Credentials) {
super();
this.agent = typeof agent === 'string' ? { webId: agent } : agent;
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Expand Up @@ -4,6 +4,7 @@ export * from './authentication/Credentials';
export * from './authentication/CredentialsExtractor';
export * from './authentication/DPoPWebIdExtractor';
export * from './authentication/EmptyCredentialsExtractor';
export * from './authentication/UnsecureConstantCredentialsExtractor';
export * from './authentication/UnsecureWebIdExtractor';

// Authorization
Expand Down

0 comments on commit 5429014

Please sign in to comment.