Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultMMKVPath ¶
func DefaultMMKVPath() string
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
Source Files
¶
- api_helpers.go
- cmd_auth.go
- cmd_bounties.go
- cmd_calendar.go
- cmd_categories.go
- cmd_chores.go
- cmd_commands.go
- cmd_config.go
- cmd_doctor.go
- cmd_export_import.go
- cmd_frames.go
- cmd_lists.go
- cmd_meals.go
- cmd_photos.go
- cmd_raw.go
- cmd_reports.go
- cmd_rewards.go
- cmd_rotation.go
- cmd_routines.go
- cmd_version.go
- cmd_watch.go
- cmd_week_views.go
- lockfile.go
- lockfile_unix.go
- mmkv.go
- output.go
- run.go
- safety.go
- secrets.go
Click to show internal directories.
Click to hide internal directories.