1
0
Fork 1
mirror of https://example.com synced 2024-11-24 06:36:40 +09:00

refactor(backend): fix type

This commit is contained in:
syuilo 2022-01-26 18:48:44 +09:00
parent ea8a94e6e2
commit 928c51ba7b

View file

@ -10,7 +10,7 @@ export class AuthenticationError extends Error {
}
}
export default async (token: string): Promise<[User | null | undefined, App | null | undefined]> => {
export default async (token: string | null): Promise<[User | null | undefined, AccessToken | null | undefined]> => {
if (token == null) {
return [null, null];
}