forked from FoundKeyGang/FoundKey
Broaden type in authenticate as undefined is also nullable
This commit is contained in:
parent
0120dee999
commit
71f339b23a
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ export class AuthenticationError extends Error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default async (authorization: string | null | undefined, bodyToken: string | null): Promise<[CacheableLocalUser | null | undefined, AccessToken | null | undefined]> => {
|
export default async (authorization: string | null | undefined, bodyToken: string | null | undefined): Promise<[CacheableLocalUser | null | undefined, AccessToken | null | undefined]> => {
|
||||||
let token: string | null = null;
|
let token: string | null = null;
|
||||||
|
|
||||||
// check if there is an authorization header set
|
// check if there is an authorization header set
|
||||||
|
|
Loading…
Reference in a new issue