server-ts: Address review

This commit is contained in:
Elian Doran
2024-04-03 19:22:49 +03:00
parent f857b8a9bb
commit 5d452a1525
8 changed files with 20 additions and 22 deletions

View File

@@ -25,7 +25,7 @@ function createToken(tokenName: string) {
};
}
function parseAuthToken(auth?: string | null) {
function parseAuthToken(auth: string | undefined) {
if (!auth) {
return null;
}
@@ -64,7 +64,7 @@ function parseAuthToken(auth?: string | null) {
}
}
function isValidAuthHeader(auth?: string | null) {
function isValidAuthHeader(auth: string | undefined) {
const parsed = parseAuthToken(auth);
if (!parsed) {