cli

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultMMKVPath

func DefaultMMKVPath() string

func Run

func Run(ctx context.Context, args []string, stdin io.Reader, stdout, stderr io.Writer) int

Types

type AuthStorage

type AuthStorage struct {
	UserID              string `json:"userId"`
	AccessToken         string `json:"accessToken"`
	RefreshToken        string `json:"refreshToken"`
	AccessTokenLifeSpan int64  `json:"accessTokenLifeSpan"`
	AccessTokenExpiry   int64  `json:"accessTokenExpiry"`
	UniqueID            string `json:"uniqueId"`
}

AuthStorage matches the JSON blob the Skylight iOS app persists in MMKV at ~/Library/Containers/com.skylightframe.mobile/Data/Documents/mmkv/mmkv.default.

func ReadMMKVAuth

func ReadMMKVAuth(path string) (*AuthStorage, error)

func (*AuthStorage) ExpiresAt

func (a *AuthStorage) ExpiresAt() time.Time

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL