fix: Remove all instances of return undefined

Resolves #26
This commit is contained in:
Joachim Van Herwegen
2020-07-22 14:31:57 +02:00
parent ad99e1fcea
commit 4ac9e92d06
6 changed files with 6 additions and 7 deletions

View File

@@ -7,13 +7,12 @@ import { HttpRequest } from '../server/HttpRequest';
*/
export class SimpleCredentialsExtractor extends CredentialsExtractor {
public async canHandle(): Promise<void> {
return undefined;
// Supports all requests
}
public async handle(input: HttpRequest): Promise<Credentials> {
if (input.headers.authorization) {
return { webID: input.headers.authorization };
}
return undefined;
}
}