BUG: GitHub verification gets stuck in “Verification Pending” state

オープン
#223 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

@AkshitGarg054 がすでに取り組んでいます。

2026年1月10日 から。

  • #224 @AkshitGarg054 による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python

調査の方向性

/verify_github のエントリーポイントから開始し、create_verification_session(...), cleanup_expired_tokens()、_cleanup_expired_sessions() をどのように呼び出しているかを追跡します。メモリ内とデータベースの有効期限切れ処理を確認し、その後、新しい検証リンクが作成される前に期限切れのセッションがクリアされること、および /verify_github を再実行できることを検証します。

索引モデルが issue の本文から書いたものです。

説明

Is there an existing issue for this?
  • I have searched the existing issues
What happened?

📌 Issue Overview

While setting up the project locally and testing the Discord → GitHub verification flow, I noticed that the verification process can get stuck in a “Verification Pending” state indefinitely, even after the verification session has expired.

This prevents users from re-initiating GitHub verification via /verify_github.

🎯 Expected Behavior

Verification sessions should expire after 5 minutes
Once expired:

  • The user should be able to re-run /verify_github
  • A new verification session should be created

🚨 Actual Behavior

After the initial verification session expires:

  • The user still receives “Verification Pending”
  • /verify_github does not generate a new verification link
  • The flow remains blocked until manual cleanup or restart

Root Cause :

The issue appears to be related to expired verification state not being cleared at the right time.

Key observations:
Verification sessions are stored in:

  • In-memory _verification_sessions
    Database fields:
  • verification_token, verification_token_expires_at

Cleanup logic exists, but :
It is not guaranteed to run before /verify_github checks for an existing pending verification. As a result, an expired token can still block new verification attempts.

Suggested Fix :

Without changing the existing verification logic, this can be resolved by ensuring expired verification state is cleared before checking for a pending verification.

  • Ensure cleanup runs before creating a new session :
    In create_verification_session(...), explicitly run cleanup before creating a new session:
    await cleanup_expired_tokens()
    _cleanup_expired_sessions()
Record
  • I agree to follow this project's Code of Conduct
  • I want to work on this issue
主要言語
Python
スター
103
フォーク
143
PR マージ指標
30日以内にマージされた PR はありません

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

AOSSIE-Org/Devr.AI のほかの issue

AOSSIE-Org/Devr.AI の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。