Ath0 setup #15358
Unanswered
ChristusArulanantham
asked this question in
Questions and Help
Ath0 setup
#15358
Replies: 1 comment
-
@ChristusArulanantham you copy and pasted TypeScript code into JavaScript. You need to remove |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I followed the Auth0 setup documentation.
https://docs.cypress.io/guides/testing-strategies/auth0-authentication.html#Custom-Command-for-Auth0-Authentication
when I add the following to command.js
the string does not seem to be an accepted value,
can you please help,
code is
Cypress.Commands.add("loginByAuth0Api", (username: String, password: String) => {
cy.log(
Logging in as ${username}
);const client_id = Cypress.env("auth0_client_id");
const client_secret = Cypress.env("auth0_client_secret");
const audience = Cypress.env("auth0_audience");
const scope = Cypress.env("auth0_scope");
})
Beta Was this translation helpful? Give feedback.
All reactions