fix(core): Fix OAuth1 callback token request (#14251)

This commit is contained in:
Elias Meire
2025-03-28 19:59:30 +01:00
committed by GitHub
parent 4443a5f532
commit 4ea219b1f7
2 changed files with 7 additions and 9 deletions

View File

@@ -230,15 +230,11 @@ describe('OAuth1CredentialController', () => {
});
jest.spyOn(Csrf.prototype, 'verify').mockReturnValueOnce(true);
nock('https://example.domain')
.post('/oauth/access_token', {
oauth_token: 'token',
oauth_verifier: 'verifier',
})
.post('/oauth/access_token', 'oauth_token=token&oauth_verifier=verifier')
.once()
.reply(200, 'access_token=new_token');
await controller.handleCallback(req, res);
const dataCaptor = captor();
expect(credentialsRepository.update).toHaveBeenCalledWith(
'1',