For anyone coming here, here's an updated version which uses SPA SDK itself to perform the flow.
A static config file is assumed, but can be adapted to use env variables.
Care as it uses deep import to get many types which aren't exposed.
Head here it you want the TS + Vue3 compatible version of Auth0 wrapper for Vue.
// cypress/support/types.d.ts
// Must be put in its own file because ES6 imports into 'commands.ts' prevents TS from discovering the augmentation
// eslint-disable-next-line @typescript-eslint/no-namespace, @typescript-eslint/no-unused-vars
declare namespace Cypress {
interface Chainable {
/**
* Custom command to login using Auth0 provider.
* @example cy.login()
*/
login(): void;
}
}
For anyone coming here, here's an updated version which uses SPA SDK itself to perform the flow. A static config file is assumed, but can be adapted to use env variables.
Care as it uses deep import to get many types which aren't exposed.
Head here it you want the TS + Vue3 compatible version of Auth0 wrapper for Vue.