mirror of
https://github.com/writefreely/writefreely
synced 2024-11-25 01:50:17 +00:00
10 lines
239 B
Go
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
|
||
|
}
|