auth

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth0

type Auth0 struct {
	// contains filtered or unexported fields
}

func NewAuth0

func NewAuth0(email, password string, mfa string, useCache bool) *Auth0

func (*Auth0) Auth

func (a *Auth0) Auth(loginLocal bool) (string, error)

func (*Auth0) AuthForCodeUrl

func (a *Auth0) AuthForCodeUrl() (string, error)

AuthForCodeUrl

@Description: 获取回调code 和回调url
@receiver a
@param loginLocal
@return string
@return error

func (*Auth0) DefaultApiPrefix added in v1.0.2

func (a *Auth0) DefaultApiPrefix() string

DefaultApiPrefix

@Description: 获取默认的fakeopen网关地址
@receiver a
@return string

func (*Auth0) GetRefreshToken added in v1.0.2

func (a *Auth0) GetRefreshToken() string

GetRefreshToken

@Description: 返回refreshToken
@receiver a
@return string

Jump to

Keyboard shortcuts

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