Many times we need to login with several types of users, and we don't have an easy way to exchange login data in insomnia.
This plugin aims to help you keep login data and easily exchange it when needed.
Click the Document dropdown menu.
Then click on the "Add user" button:
and then add the form data.
- name: It is the user name that will appear in the menu;
- identifier: It is any identifier that will be used as a credential (E-mail, or username);
- password: It is the user's password;
After that the username will be available in the list
You can access the document menu and click on any user that you have created. The selected user will have a "check" icon.
To access the data of the selected user, you can use some template tags from the plugin, which are:
Current user name: The name of the selected user; Current user identifier: The identifier of the selected user; Current user password: The password of the selected user;
You can delete a user by clicking on the Document menu again and then on "Delete User".
After that, a modal will appear with a list of identifiers. Just double-click on the "x" icon next to the user you want to delete and click on "finish".