api

package
v0.0.0-...-277c1ae Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckEmail

func CheckEmail(email string) bool

func GenerateCodeChallenge

func GenerateCodeChallenge(codeVerifier string) string

func GenerateCodeVerifier

func GenerateCodeVerifier() string

func InitConfig

func InitConfig(proxyUrl string)

func Login

func Login(email string, password string)

Types

type Auth0

type Auth0 struct {
	SessionToken string
	Email        string
	Password     string
	ApiPrefix    string
}

func NewAuth0

func NewAuth0(email, password string) *Auth0

func (Auth0) CheckPassword

func (auth Auth0) CheckPassword(codeVerifier string, state string)

func (Auth0) CheckUsername

func (auth Auth0) CheckUsername(codeVerifier string, state string)

func (Auth0) GetAccessToken

func (auth Auth0) GetAccessToken(codeVerifier string, callbackUrl string)

func (Auth0) GetLocation

func (auth Auth0) GetLocation(codeVerifier string, location string, ref string)

func (Auth0) GetLoginUrl

func (auth Auth0) GetLoginUrl()

func (Auth0) Login

func (auth Auth0) Login(codeVerifier string, reqUrl string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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