senses:types:auth
Differences
This shows you the differences between two versions of the page.
senses:types:auth [2025/07/28 00:32] – created flash | senses:types:auth [2025/07/28 00:37] (current) – added example flash | ||
---|---|---|---|
Line 12: | Line 12: | ||
The token_type field contains the type string of the token, used for the first part of a [[https:// | The token_type field contains the type string of the token, used for the first part of a [[https:// | ||
+ | |||
+ | While the value of this field is likely always to be the string '' | ||
===== expires_in ===== | ===== expires_in ===== | ||
Line 20: | Line 22: | ||
The optional scope field contains the scope string for the access_token if it differed from the scope the Komeiji runtime requested with the authorization server. | The optional scope field contains the scope string for the access_token if it differed from the scope the Komeiji runtime requested with the authorization server. | ||
+ | |||
+ | ===== Example ===== | ||
+ | |||
+ | This example sends a HTTP request to an arbitrary endpoint using Satori' | ||
+ | |||
+ | local http = require(' | ||
+ | local auth = satori.getAuthToken() | ||
+ | local result = http.get(' | ||
+ | timeout = 5000, | ||
+ | type = ' | ||
+ | requestHeaders = { | ||
+ | [' | ||
+ | } | ||
+ | }) |
senses/types/auth.txt · Last modified: by flash