Development

Simple OAuth Token Handling with Cypress

Here’s a quick (and dirty?) way to handle requesting an access token and using it in a subsequent request.

You should probably pull the client_secret from an environment variable (not shown below).

commands.js

 

some-tests.spec.js

 

Leave a Reply

Your email address will not be published.