Discover Packages
github.com/amp-labs/cli
appdata
package
Version:
v0.1.11
Opens a new window with list of versions in this module.
Published: Mar 21, 2024
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Set writes the given config to the user's config file.
The config can be a partial config, and it is merged with the existing config.
type Config struct {
Token Token `json:"token"`
}
IMPORTANT:
Do not modify the JSON labels in this struct without ensuring backwards compatibility,
since those strings are written to the user's config file on their computer.
Get returns the user's existing config, or an empty config if the file doesn't exist.
type Token struct {
Iss string `json:"iss"`
Sub string `json:"sub"`
Aud string `json:"aud"`
Iat int `json:"iat"`
Exp int `json:"exp"`
}
Token represents a JWT token.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.