mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 17:26:03 +03:00
[GH-ISSUE #984] Saving response data in env variable #345
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#345
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Sensanaty on GitHub (Jul 7, 2020).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/984
Is it possible to save a response into the environmental variables?
I'm building an API where I have to authenticate via a JWT, so first I send the credentials to my
authenticateendpoint, then after that I included the JWT as a Bearer Token in future requests.Is there a way to automatically save the response body into a env variable? I know I can do a pre-request script where I do
pw.env.set(which doesn't work in the tests), but my token has a short lifespan of 5 minutes so I'd need to manually override this constantly.Does this feature exist as of yet?
@liyasthomas commented on GitHub (Jul 7, 2020):
At the moment there's no such feature to automatically save response data to environment.