auth

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthApi added in v1.0.0

type AuthApi struct {
	UserRepository repository.UserRepository
}

func (*AuthApi) LegacyLogin added in v1.0.0

func (s *AuthApi) LegacyLogin() gin.HandlerFunc

Legacy Login logs users in

func (*AuthApi) Login added in v1.0.0

func (s *AuthApi) Login() gin.HandlerFunc

Login logs users in

func (*AuthApi) Signup added in v1.0.0

func (s *AuthApi) Signup(c *gin.Context)

Signup creates a user in db

type LegacyLoginPayload

type LegacyLoginPayload struct {
	Username string `json:"username"`
	Email    string `json:"email"`
	Password string `json:"password"`
}

LoginPayload login body

type LoginPayload

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

LoginPayload login body

type LoginResponse

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

LoginResponse token response

Jump to

Keyboard shortcuts

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