Skip to content

Conversation

@nezumi0627
Copy link
Contributor

@nezumi0627 nezumi0627 commented Dec 31, 2025

概要

最新の LINE プロトコルに対応するため、よりセキュアな QR ログインフロー(ForSecure)を実装しました。

主な変更点

ForSecure QRログインの実装

  • 以下の ForSecure 対応メソッドを新規実装しました:

    • createQrCodeForSecure
    • qrCodeLoginForSecure
    • qrCodeLoginV2ForSecure

once パラメータの取得および受け渡しを正しく行い、最新プロトコル要件に準拠しました。

  • サーバーから返却される以下の値を正しく反映するように改善しました:

    • longPollingIntervalSec(待機間隔)
    • longPollingMaxCount(最大試行回数)
  • 固定タイムアウト方式を廃止し、規定回数まで自動リトライするループ処理へ変更しました。

注意

この PR は #105 の一部の変更のみを含んでいます。他の変更(クライアントの堅牢性向上など)は別 PR として分割予定です。

- Add createQrCodeForSecure, qrCodeLoginForSecure, qrCodeLoginV2ForSecure methods
- Update requestSQR and requestSQR2 to use ForSecure methods with nonce parameter
- Update checkQrCodeVerified and checkPinCodeVerified to support polling with server-provided parameters (longPollingMaxCount, longPollingIntervalSec)
- Add retry logic with timeout handling for polling methods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant