func (t *AccountToken) Expired() bool {
	return t.Expiry.Unix() < time.Now().Unix()
}
Expired returns a boolean indicating if the token needs to be refreshed
package auth
import (
	"context"
	"errors"
	"time"
)
var (
	DefaultAuth Auth
	ErrInvalidToken = errors.New("invalid token provided")
	ErrForbidden = errors.New("resource forbidden")
)
const (
	ScopePublic = ""
	ScopeAccount = "*"
	ScopeAnyNamespaceAccount = "+"
)
type Account struct {
	ID string `json:"id"`
	Type string `json:"type"`
	Issuer string `json:"issuer"`
	Metadata map[string]string `json:"metadata"`
	Scopes []string `json:"scopes"`
	Secret string `json:"secret"`
	Name string `json:"name"`
}
type AccountToken struct {
	AccessToken string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
	Created time.Time `json:"created"`
	Expiry time.Time `json:"expiry"`
}