Fix send function headers error

This commit is contained in:
venashial
2022-06-25 13:08:20 -07:00
parent e9d7df8862
commit fb3a9f1f29
7 changed files with 35 additions and 22 deletions

View File

@@ -35,6 +35,7 @@ export async function send<Operation extends keyof operations>(
const fetchOptions: RequestInit = {
method,
headers: {},
}
const token = get(tokenStore) || options.token