Came across an issue where users created in a non-default connection could not be authorized in testing.
What I did
Update the function in src/commands/get-user-tokens.js to call auth.client.login rather than auth.client.loginWithDefaultDirectory to enable specifying the realm property in the call.
Add default value for realm to "Username-Password-Authentication" as specified in the README.md to prevent breaking existing implementations.
Update README.md to include the new config variable auth0Realm.
Update README.md to remove breaking commas from example .env files.
How to test
Create a new connection in auth0
Enable the connection on your auth0 application
Create a new user in auth0 that uses the connection created in step 1
Update cypress.env.json with the new username/password and add auth0Realm: <your new connection name>
Notes
Came across an issue where users created in a non-default connection could not be authorized in testing.
What I did
src/commands/get-user-tokens.js
to callauth.client.login
rather thanauth.client.loginWithDefaultDirectory
to enable specifying therealm
property in the call.auth0Realm
.How to test
cypress.env.json
with the new username/password and addauth0Realm: <your new connection name>