auth

package
v0.0.0-...-6617f65 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CentralToken

func CentralToken() string

Types

type LoginReq

type LoginReq struct {
	User struct {
		Email    string `json:"email"`
		Password string `json:"password"`
	} `json:"user"`
}

type LoginResult

type LoginResult struct {
	User struct {
		UserID uint   `json:"user_id"`
		Token  string `json:"token"`
	} `json:"user"`
}

func Login

func Login(email string, password string) (LoginResult, error)

Jump to

Keyboard shortcuts

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