GET requests should not use json middleware

This commit is contained in:
Girish Ramakrishnan
2025-06-06 17:11:21 +02:00
parent 05fc8ed5db
commit 0f7bc9be52
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -246,7 +246,8 @@ describe('Profile API', function () {
it('can get secret', async function () {
const response = await superagent.post(`${serverUrl}/api/v1/profile/twofactorauthentication_secret`)
.query({ access_token: user.token });
.query({ access_token: user.token })
.send({});
secret = response.body.secret;
});