package auth

import (
	"time"

	"secondbit.org/uuid"
)

type Grant struct {
	Code        string
	Created     time.Time
	ExpiresIn   int32
	ClientID    uuid.ID
	Scope       string
	RedirectURI string
	State       string
}

type GrantStore interface {
	GetGrant(code string) (Grant, error)
	SaveGrant(grant Grant) error
	DeleteGrant(id uuid.ID) error
}
