responses

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InvalidAccessToken = iota + 1
	InvalidUsersSignature
	NonceNotFound
	NotLikelyHuman
	ScoreIsTooLow
	InvalidGatewayToken
)
View Source
const (
	EthAddressTaken = iota + 1
	IdentityVerified
	DuplicateProviderData
)

Variables

This section is empty.

Functions

func Conflict

func Conflict(cause string) *jsonapi.ErrorObject

func NewNonce

func NewNonce(nonce string) resources.NewNonceResponse

func NewVerifyStatus

func NewVerifyStatus(user *data.User) resources.VerifyStatusRequest

func Unauthorized

func Unauthorized(cause string) *jsonapi.ErrorObject

Types

type VerifyID

type VerifyID struct {
	resources.Key
}

type VerifyIDResponse

type VerifyIDResponse struct {
	Data VerifyID `json:"data"`
}

func NewVerify

func NewVerify(id uuid.UUID) VerifyIDResponse

Jump to

Keyboard shortcuts

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