feat(api): use jwt_access_token (in development) (#53997)

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
This commit is contained in:
Oliver Eyton-Williams
2024-03-20 12:47:12 +01:00
committed by GitHub
parent bb2efe7618
commit aacfb281fb
25 changed files with 871 additions and 289 deletions
+4 -4
View File
@@ -12,8 +12,8 @@ declare global {
}
type Options = {
sendCSRFToken: boolean;
};
sendCSRFToken?: boolean;
} & Record<string, unknown>;
const requests = {
GET: (resource: string) => request(fastifyTestInstance?.server).get(resource),
@@ -187,8 +187,8 @@ export async function devLogin(): Promise<string[]> {
id: defaultUserId
}
});
const res = await superRequest('/auth/dev-callback', { method: 'GET' });
expect(res.status).toBe(200);
const res = await superRequest('/signin', { method: 'GET' });
expect(res.status).toBe(302);
return res.get('Set-Cookie');
}