Cypress - Authentication and Sessions
Given the following code snippet, what will be the value of
token after the test runs?cy.request('POST', '/api/login', { username: 'test', password: '1234' })
.then((response) => {
const token = response.body.token
cy.wrap(token).as('authToken')
})