Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

OAuthAccount.expires_at should be BigInteger

Open Beginner friendly
#1,296 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
fastapi, python

Research direction

Start by locating the OAuthAccount.expires_at model field and reproduce the database insert with an OAuth2 provider returning a large expiration timestamp, such as the ORCID sandbox. Change the field to support dates in 2043 and verify that authentication and database insertion succeed without the integer overflow failure.

Written by the indexing model from the issue text.

Description

bug

Describe the bug

The OAuthAccount.expires_at field is an Integer. If your OAuth2 provider decides to give you a value in 2043 (as ORCID sandbox does) then this cannot be inserted into the database any more.

To Reproduce

Steps to reproduce the behavior:

  1. Setup fastapi-users with OAuth2.
  2. Authenticate with a provider who returns a sufficiently large expires_at value.
  3. Database insert will fail.

Expected behavior

Dates in 2043 should work.

Configuration

  • Python version : 3.11
  • FastAPI version : 0.103.1
  • FastAPI Users version : 12.1.2
FastAPI Users configuration

N/A

Additional context

N/A

Dominant language
Python
Stars
6.2k
Forks
511
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from fastapi-users/fastapi-users

All issues in fastapi-users/fastapi-users

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.