Module credentials

Module credentials 

Source
Expand description

Credential storage and retrieval for Syncable authentication

Stores authentication tokens in ~/.syncable.toml

Enums§

AuthStatus
Authentication status enum

Functions§

clear_credentials
Clear stored credentials (logout)
get_access_token
Get the current access token if valid
get_auth_status
Get authentication status including expiry info
get_user_email
Get the authenticated user’s email
is_authenticated
Check if the user is currently authenticated with a valid token
save_credentials
Save credentials to global config file