refactor(backend): fix type
This commit is contained in:
parent
ea8a94e6e2
commit
928c51ba7b
|
@ -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) {
|
if (token == null) {
|
||||||
return [null, null];
|
return [null, null];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue