writefreely/oauth/state.go
2021-06-09 14:22:13 -04:00

9 lines
239 B
Go

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
}