https://cypress.io logo
Greeting! I want to log in to the portal using ju...
# general-chat
r
Greeting! I want to log in to the portal using just the bearer token. I can't visit the page. I did as following:
Copy code
const bearerToken = 'abcwert'
cy.setCookie('Authorization', bearerToken)
cy.visit('https://example.com/',{
      headers: {
        'Authorization': bearerToken,
      },
    })
help needed. Thank you