Hey guys, first post, hoping for some help in trying to create a graphql authorization that mimics a pre-request that I already use in a graphql native ide.
The basic workflow that the server is expecting is to submit credentials (username and password) received a token, then query the server with a url containing the token.
Currently doing it as below...
- set username, password and endpoint url from system variables
- verify the endpoint url doesn't end with a '/', if it does remove it
- get the url as built
- await response
- grab token value from response and place into environment variables
- post url with token to run query
How do I mimic this in Retool?
Some additional info, I've tried following this information (https://docs.retool.com/docs/custom-api-authentication) for setting up the authentication and I am stuck at the point where I can only pass the variable created as a header and not as a token to go into the URL.
Any help is appreciated.