login

package
v0.0.0-...-cbe96fd Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginService

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

func NewLoginService

func NewLoginService(client *lshttp.Client) *LoginService

func (*LoginService) DefaultLogin

func (l *LoginService) DefaultLogin(ctx context.Context) (*SessionResponse, error)

func (*LoginService) LogMeIn

func (l *LoginService) LogMeIn(ctx context.Context, account string, password string) (*SessionResponse, error)

func (*LoginService) SignUp

func (l *LoginService) SignUp(ctx context.Context, email, password string, invitedToken string) (*SessionResponse, error)

SignUp allows a new user to be registered into labelstudio invitedToken is required when the public registered is diabled when LABEL_STUDIO_DISABLE_SIGNUP_WITHOUT_LINK is turned on.

type SessionResponse

type SessionResponse struct {
	SessionID string `json:"sessionid"`
}

Jump to

Keyboard shortcuts

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