Skip to content

Tokens are stored from the response, in an environment variable, with a set name.

Notifications You must be signed in to change notification settings

linux-vps/httpyac-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

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:

# @name Variables

Initialize global variables:

{{
  $global.accessToken=null;
  $global.refreshToken=null;
}}

Use global variables even in other .http files:

# @name me
GET /auth/me
Authorization: Bearer {{$global.accessToken}}

About

Tokens are stored from the response, in an environment variable, with a set name.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published