security

package
v0.0.0-...-e3e9b0f Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client *http.Client

Functions

func GetCaptchaURL

func GetCaptchaURL(captchaProvider string) (string, error)

Types

type GotrueRequest

type GotrueRequest struct {
	Security GotrueSecurity `json:"gotrue_meta_security"`
}

type GotrueSecurity

type GotrueSecurity struct {
	Token string `json:"captcha_token"`
}

type VerificationResponse

type VerificationResponse struct {
	Success    bool     `json:"success"`
	ErrorCodes []string `json:"error-codes"`
	Hostname   string   `json:"hostname"`
}

func VerifyRequest

func VerifyRequest(r *http.Request, secretKey, captchaProvider string) (VerificationResponse, error)

Jump to

Keyboard shortcuts

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