mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
feat(api): use jwt_access_token (in development) (#53997)
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
bb2efe7618
commit
aacfb281fb
+4
-4
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user