Skip to content

Instantly share code, notes, and snippets.

@channprj

channprj/postmanTest.js

Last active Jan 26, 2021
Embed
What would you like to do?
// csrftoken 쿠키 설정
const csrftoken = pm.cookies.get('csrftoken')
pm.environment.set('csrftoken', csrftoken);
// jwt 토큰 환경변수 설정
const responseData = pm.response.json();
pm.environment.set('access', responseData.access);
pm.environment.set('refresh', responseData.refresh);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment