writefreely/oauth/state.go

10 lines
239 B
Go
Raw Permalink Normal View History

package oauth
import "context"
// ClientStateStore provides state management used by the OAuth client.
type ClientStateStore interface {
Generate(ctx context.Context) (string, error)
Validate(ctx context.Context, state string) error
}