oauth

package
v1.14.13 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: GPL-3.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OAuthGoogle   = "google"
	OAuthApple    = "apple"
	OAuthTelegram = "telegram"
	OAuthGithub   = "github"
	AuthEmail     = "email"
	AuthExpire    = 86400
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppleLoginCallbackLogic

type AppleLoginCallbackLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func NewAppleLoginCallbackLogic

func NewAppleLoginCallbackLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AppleLoginCallbackLogic

Apple Login Callback

func (*AppleLoginCallbackLogic) AppleLoginCallback

type AppleLoginRedirect added in v1.3.13

type AppleLoginRedirect struct {
	StatusCode int
	Location   string
}

type OAuthLoginGetTokenLogic

type OAuthLoginGetTokenLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func NewOAuthLoginGetTokenLogic

func NewOAuthLoginGetTokenLogic(ctx context.Context, svcCtx *svc.ServiceContext) *OAuthLoginGetTokenLogic

NewOAuthLoginGetTokenLogic OAuth login get token

func (*OAuthLoginGetTokenLogic) OAuthLoginGetToken

func (l *OAuthLoginGetTokenLogic) OAuthLoginGetToken(req *dto.OAuthLoginGetTokenRequest, ip, userAgent string) (resp *dto.LoginResponse, err error)

type OAuthLoginLogic

type OAuthLoginLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func NewOAuthLoginLogic

func NewOAuthLoginLogic(ctx context.Context, svcCtx *svc.ServiceContext) *OAuthLoginLogic

OAuth login

func (*OAuthLoginLogic) OAuthLogin

func (l *OAuthLoginLogic) OAuthLogin(req *dto.OAthLoginRequest) (resp *dto.OAuthLoginResponse, err error)

Jump to

Keyboard shortcuts

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