# Functions
AccountFromContext gets the account from the context, which is set by the auth wrapper at the start of a call.
Addrs is the auth addresses to use.
ClientToken sets the auth token to use when making requests.
ContextWithAccount sets the account in the context.
Credentials sets the auth credentials.
Namespace the service belongs to.
NewGenerateOptions from a slice of options.
NewTokenOptions from a slice of options.
PrivateKey is the JWT private key.
PublicKey is the JWT public key.
Verify an account has access to a resource using the rules provided.
WithExpiry for the token.
WithLogger sets the underline logger.
WithMetadata for the generated account.
WithProvider for the generated account.
WithScopes for the generated account.
WithSecret for the generated account.
WithType for the generated account.
# Constants
AccessDenied to a resource.
AccessGranted to a resource.
BearerScheme used for Authorization header.
ScopeAccount is the scope applied to a rule to limit to users with any valid account.
ScopePublic is the scope applied to a rule to allow access to the public.
# Variables
ErrForbidden is when a user does not have the necessary scope to access a resource.
ErrInvalidToken is when the token provided is not valid.
# Structs
Account provided by an auth provider.
Resource is an entity such as a user or.
Rule is used to verify access to a resource.
Token can be short or long lived.
# Type aliases
Access defines the type of access a rule grants.