https://github.com/linux-vps/httpyac-example
Tokens are stored from the response, in an environment variable, with a set name.
https://github.com/linux-vps/httpyac-example
accesstoken http httpyac refresh-token requests token
Last synced: about 1 year ago
JSON representation
Tokens are stored from the response, in an environment variable, with a set name.
- Host: GitHub
- URL: https://github.com/linux-vps/httpyac-example
- Owner: linux-vps
- Created: 2025-01-10T08:03:29.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-10T15:56:14.000Z (about 1 year ago)
- Last Synced: 2025-01-28T02:18:12.675Z (about 1 year ago)
- Topics: accesstoken, http, httpyac, refresh-token, requests, token
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### This httpyac example is for a server project that serves the Supabase database.
#### Tokens are stored from the response, in an environment variable, with a set name.
##### If an error occurs, just repeat the step that saves the information to the variable.
Summary:
Use the @name decorator to assign a name. For example:
```bash
# @name Variables
```
Initialize global variables:
```bash
{{
$global.accessToken=null;
$global.refreshToken=null;
}}
```
Use global variables even in other .http files:
```bash
# @name me
GET /auth/me
Authorization: Bearer {{$global.accessToken}}
```