googleAuth

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoogleAuth

type GoogleAuth struct {
}

func NewGoogleAuth

func NewGoogleAuth() *GoogleAuth

func (*GoogleAuth) GetCode

func (this *GoogleAuth) GetCode(secret string) (string, error)

获取动态码

func (*GoogleAuth) GetQrcode

func (this *GoogleAuth) GetQrcode(user, secret string) string

获取动态码二维码内容

func (*GoogleAuth) GetQrcodeUrl

func (this *GoogleAuth) GetQrcodeUrl(user, secret string) string

获取动态码二维码图片地址,这里是第三方二维码api

func (*GoogleAuth) GetSecret

func (this *GoogleAuth) GetSecret() string

获取秘钥

func (*GoogleAuth) VerifyCode

func (this *GoogleAuth) VerifyCode(secret, code string) (bool, error)

验证动态码

Jump to

Keyboard shortcuts

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