arblant
firefox-vpn-client / core / internal / fxa / tokens.go
tokens.go12 lines · 335 B
1 2 3 4 5 6 7 8 9 10 11 12
package fxa

import "time"

// SavedTokens are an account's stored OAuth credentials.
type SavedTokens struct {
	AccessToken  string    `json:"access_token"`
	RefreshToken string    `json:"refresh_token"`
	Scope        string    `json:"scope"`
	ObtainedAt   time.Time `json:"obtained_at"`
	ExpiresIn    int       `json:"expires_in"`
}