Documentation
¶
Overview ¶
Package device provides DataTug's shared auth.sneat.co device-login command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Command ¶
Command returns the DataTug auth.sneat.co commands. It is separate from auth google and the GitHub repository authorization flow, which grant different provider permissions and remain unchanged.
func LoginCommand ¶
LoginCommand, StatusCommand, and LogoutCommand are mounted directly under `datatug auth` so the shared sign-in has the conventional CLI shape.
func LogoutCommand ¶
func StatusCommand ¶
Types ¶
type RefreshSession ¶
RefreshSession exchanges a Firebase refresh token for the current session. It is injected so the identity endpoint is never hard-wired in tests.
type TokenSource ¶
type TokenSource struct {
// contains filtered or unexported fields
}
TokenSource loads the DataTug Firebase session, refreshes it before expiry, and atomically replaces the scoped credential before returning a bearer. Authenticated DataTug commands use this rather than a static one-shot token.