Merge pull request #12842 from overleaf/jpa-logout

[web] remove GET /logout endpoints

GitOrigin-RevId: 93f9498fdb66ece5028d90941aac50cda2737604
This commit is contained in:
Jakob Ackermann
2023-05-04 08:05:57 +00:00
committed by Copybot
parent d5242379f2
commit b0633b3a47
7 changed files with 6 additions and 34 deletions
@@ -89,7 +89,7 @@ describe('<LeaveModalForm />', function () {
sinon.assert.calledTwice(setInFlight)
sinon.assert.calledWithMatch(setInFlight, false)
sinon.assert.calledOnce(assignStub)
sinon.assert.calledWith(assignStub, '/login')
sinon.assert.calledWith(assignStub, '/')
})
})
@@ -22,7 +22,7 @@ async function run({ assertHasStatusCode, loginCsrfToken, request }) {
}
async function cleanup({ assertHasStatusCode, getCsrfTokenFor, request }) {
const logoutCsrfToken = await getCsrfTokenFor('/logout')
const logoutCsrfToken = await getCsrfTokenFor('/project')
const response = await request('/logout', {
method: 'POST',
headers: {