DEV Community

Discussion on: Postman vs Insomnia: which API testing tool do you use?

Collapse
 
fagunbhavsar profile image
fagun

Hi, I am trying to use Insomnia for one of my project. I was previously using Postman and for authentication - I was using option "Inherit from Parent" in Postman (Basically, both auth_token and auth_secret were mentioned as environment variables). Now, I am not sure how to use auth while using Insomnia. I tried it by defining as env variables in Insomnia too but it shows me "Unauthorized" error. Could someone guide me here? Thanks

Collapse
 
thisnoname profile image
ThisNoName

There's a default header plugin. If your token/secret is static, you can set it from there; If token come from another request, you can call the request from default header; If you have multiple providers, you can use another plugin to save token into a variable, then set authorization header to the variable.