line_login

package module
v0.0.0-...-b09bc7e Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

README

line-login

Usage

$ go get -u -v github.com/5hields/line-login

Note

  1. Enable a LetterSealing
  2. Allow SecondaryLogin (email & password)

Example

import (
    "fmt"
    ll "github.com/5hields/line-login"
)

func main() {
    token, err := ll.LoginWithCredential("Your Email", "Your Pass")
    if err != nil {
    // hoge
    }
    fmt.Println("AuthToken:" + token)
}

support

LineVersion: 10.17.0 ~
Go Version: go1.15.3 ~

BugReport

0authn@protonmail.com

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Certificate

func Certificate(cert string) func(*loginOption)

func LoginResultDetail

func LoginResultDetail(r *linethrift.LoginResult_)

func LoginWithCredential

func LoginWithCredential(email, pass string, opts ...func(*loginOption)) (string, error)

Types

type LineClient

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

func NewLineClient

func NewLineClient() *LineClient

func (*LineClient) ConfirmE2EELogin

func (c *LineClient) ConfirmE2EELogin(verifier string, secret []byte) string

func (*LineClient) GetRSAKeyInfo

func (c *LineClient) GetRSAKeyInfo() *linethrift.RSAKey

func (*LineClient) LoginZ

func (*LineClient) LogoutZ

func (c *LineClient) LogoutZ()

func (*LineClient) RequestAccountPasswordReset

func (c *LineClient) RequestAccountPasswordReset(email string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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