Documentation
¶
Overview ¶
Package localauth contains authentication logic for use in local development.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
Authenticator is an authenticator used in local development. In local development, we decode the JWT provided by the user. In production, we use AWS API Gateway to do this.
func New ¶
func New(ctx context.Context, opts Opts) (*Authenticator, error)
New creates a new Authenticator.
func (*Authenticator) Authenticate ¶
Authenticate is used in development to get a user from a HWT identity token. In local development we parse the JWT provided by the user.
Click to show internal directories.
Click to hide internal directories.