(db: AsyncSession, user: User)
| 32 | |
| 33 | |
| 34 | async def get_user_github_token(db: AsyncSession, user: User) -> str | None: |
| 35 | result = await db.execute( |
| 36 | select(UserIdentity).where( |
| 37 | UserIdentity.user_id == user.id, UserIdentity.provider == "github" |
| 38 | ) |
| 39 | ) |
| 40 | github_identity = result.scalar_one_or_none() |
| 41 | return github_identity.access_token if github_identity else None |
no outgoing calls
no test coverage detected