lineqr_login

package module
v0.0.0-...-20f4486 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

README

lineqr-login

OverView

LINE-Login

Description

For security reasons, login with email and password has been deprecated. so, I've migrated to login by qrCode.

This login supports with E2EE

Dependency

go version go1.15.3

Install
$ go get -u -v github.com/5hields/lineqr-login
Usage
packege main

import (
    "fmt"

    qr "github.com/5hields/lineqr-login"
)

func main() {
    // with Cert qr.LoginWithQrCode(Certificate("Your Certificate"))
    authToken, err := qr.LoginWithQrCode()
    if err != nil {
    // hoge
    }
    fmt.Println("authToken:", authToken)
}
Support

LineVersion: 10.20.0 ~

Platform: Line for iOS, Line for Android

Authors

5hields: 0authn@protonmail.com

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Certificate

func Certificate(cert string) func(option *loginOption)

func LoginWithQrCode

func LoginWithQrCode(opts ...func(*loginOption)) (string, error)

Types

type LineClient

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

func (*LineClient) CheckPinCodeVerified

func (c *LineClient) CheckPinCodeVerified(sessionId string) error

func (*LineClient) CheckQrCodeVerified

func (c *LineClient) CheckQrCodeVerified(sessionId string) error

func (*LineClient) CreatePinCode

func (c *LineClient) CreatePinCode(sessionId string) (string, error)

func (*LineClient) CreateQrCode

func (c *LineClient) CreateQrCode(sessionId string) (string, error)

func (*LineClient) CreateSession

func (c *LineClient) CreateSession() (string, error)

func (*LineClient) QrCodeLogin

func (c *LineClient) QrCodeLogin(sessionId string) (*login.QrCodeLoginResponse, error)

func (*LineClient) VerifyCertificate

func (c *LineClient) VerifyCertificate(sessionId, cert string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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