mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
Bump dependencies versions
This commit is contained in:
@@ -254,7 +254,7 @@ export class TestSession {
|
||||
) {
|
||||
const resp = await axios.get(`${this.home.getOwnUrl()}/test/session`,
|
||||
{validateStatus: (s => s < 400), headers: this.headers});
|
||||
const cookie = this.headers.Cookie || resp.headers['set-cookie'][0];
|
||||
const cookie = this.headers.Cookie || resp.headers['set-cookie']![0];
|
||||
const cid = decodeURIComponent(cookie.split('=')[1].split(';')[0]);
|
||||
const sessionId = this.home.getSessions().getSessionIdFromCookie(cid);
|
||||
const scopedSession = this.home.getSessions().getOrCreateSession(sessionId as string, org, '');
|
||||
|
||||
@@ -21,7 +21,7 @@ export function configForUser(username: string): AxiosRequestConfig {
|
||||
}
|
||||
};
|
||||
if (username !== 'Anonymous') {
|
||||
config.headers.Authorization = 'Bearer api_key_for_' + username.toLowerCase();
|
||||
config.headers!.Authorization = 'Bearer api_key_for_' + username.toLowerCase();
|
||||
}
|
||||
return config;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user