securestore

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package securestore keeps small secrets, such as auth tokens, in the platform's secure storage: the Keychain on iOS, an Android Keystore key on Android. Values stay on the device: they are not synced or backed up.

if err := securestore.Set(ctx, "token", t); err != nil { ... }
token, ok, err := securestore.Get(ctx, "token")

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(ctx context.Context, key string) error

Delete removes key; deleting a missing key is not an error.

func Get

func Get(ctx context.Context, key string) (value string, ok bool, err error)

Get reads key: ok is false when nothing is stored under it.

func Set

func Set(ctx context.Context, key, value string) error

Set stores value under key, replacing what was there.

Types

This section is empty.

Jump to

Keyboard shortcuts

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