backend-{app-api,test-utils}: minor cleanup
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
+1
-1
@@ -91,7 +91,7 @@ class DefaultHttpAuthService implements HttpAuthService {
|
||||
return credentials;
|
||||
}
|
||||
|
||||
async #getCredentials(req: /* */ RequestWithCredentials) {
|
||||
async #getCredentials(req: RequestWithCredentials) {
|
||||
return (req[credentialsSymbol] ??=
|
||||
this.#extractCredentialsFromRequest(req));
|
||||
}
|
||||
|
||||
@@ -61,6 +61,7 @@ export class MockAuthService implements AuthService {
|
||||
case '':
|
||||
throw new AuthenticationError('Token is empty');
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if (token.startsWith(MOCK_USER_TOKEN_PREFIX)) {
|
||||
|
||||
Reference in New Issue
Block a user