1
0
mirror of https://github.com/writeas/writefreely synced 2024-12-11 08:06:30 +01:00
writefreely/oauth/state.go
2021-06-09 14:22:13 -04:00

10 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
}