app

package
v0.0.0-...-afd1d67 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application interface {
	Config() *Config

	RegisterUser(c *fiber.Ctx) error

	Login(c *fiber.Ctx) error
	Verify(c *fiber.Ctx) error
	Refresh(c *fiber.Ctx) error

	RefreshUserSnapshots(c *fiber.Ctx) error

	DeleteUserTokens(c *fiber.Ctx) error
}

type Config

type Config struct {
	TokenTTL                   time.Duration
	Port                       string
	RequireRecaptchaToRegister bool
}

func NewConfig

func NewConfig() *Config

type LoginPayload

type LoginPayload struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type RefreshPayload

type RefreshPayload struct {
	Token string `json:"token"`
}

Jump to

Keyboard shortcuts

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