Skip to content

Instantly share code, notes, and snippets.

View regniblod's full-sized avatar
🏠
Working from home

Albert Montañez regniblod

🏠
Working from home
View GitHub Profile
@regniblod
regniblod / postman.js
Created August 7, 2018 08:09
Postman pre-request script to get a new JWT token before each request
pm.sendRequest({
url: pm.environment.get('url') + '/login_check',
method: 'POST',
header: {
'Content-Type': 'multipart/form-data',
},
body: {
mode: 'formdata',
formdata: [
{ key: '_email', value: pm.environment.get('email') },