auth

package
v0.0.0-...-932a008 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App interface {
	// Register inserts a new account into the repository, that has yet to be activated.
	Register(models.EmailAddress, models.Password) (models.User, error)
	Login(models.EmailAddress, models.Password) (jwt.Token, error)
}

App provides the interface that maps closely to however you wish to communicate with external components. It may be a one-to-one mapping to a graphql schema or grpc service. Other contexts, or 'domains', should communicate with each other through their APIs.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL