Verify Options

This commit is contained in:
Ben Toogood
2020-05-20 16:49:52 +01:00
parent 5d14970a55
commit 344ce061ce
6 changed files with 35 additions and 15 deletions

View File

@@ -27,7 +27,7 @@ type Auth interface {
// Generate a new account
Generate(id string, opts ...GenerateOption) (*Account, error)
// Verify an account has access to a resource using the rules
Verify(acc *Account, res *Resource) error
Verify(acc *Account, res *Resource, opts ...VerifyOption) error
// Inspect a token
Inspect(token string) (*Account, error)
// Token generated using refresh token or credentials