v1

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthCodeURLBody

type AuthCodeURLBody struct {
	Provider string `validate:"required"`
}

type AuthHandler

type AuthHandler struct {
	*common.BaseHanlder
	JWTService *jwtservice.JWTService
}

func (*AuthHandler) Me

func (*AuthHandler) Middleware

type OAuthHandler

type OAuthHandler struct {
	*common.BaseHanlder
}

func (*OAuthHandler) AuthCodeURL

func (h *OAuthHandler) AuthCodeURL(w http.ResponseWriter, req bunrouter.Request) error

type SigninBody

type SigninBody struct {
	Method   model.CredentialMethod `validate:"oneof=PASSWORD OAUTH"`
	Key      *string                `validate:"required_if=Method PASSWORD,omitempty"`
	Password *string                `validate:"required_if=Method PASSWORD,omitempty"`
	Provider *string                `validate:"required_if=Method OAUTH,omitempty"`
	Code     *string                `validate:"required_if=Method OAUTH,omitempty"`
	State    *uuid.UUID             `validate:"required_if=Method OAUTH,omitempty"`
}

type SigninHandler

type SigninHandler struct {
	*common.BaseHanlder
	JWTService *jwtservice.JWTService
}

func (*SigninHandler) Signin

type SignoutHandler

type SignoutHandler struct {
	*common.BaseHanlder
}

func (*SignoutHandler) Signount

type SignupBody

type SignupBody struct {
	Email    *string `validate:"required_without_all=Username Phone,omitempty,email"`
	Phone    *string `validate:"required_without_all=Email Username,omitempty,e164"`
	Username *string `validate:"required_without_all=Email Phone,omitempty"`
	Password string  `validate:"required"`
}

type SignupHandler

type SignupHandler struct {
	*common.BaseHanlder
}

func (*SignupHandler) Signup

Jump to

Keyboard shortcuts

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