Thanks to visit codestin.com
Credit goes to github.com

Skip to content

OAuthAccount.expires_at should be BigInteger #1296

@holtgrewe

Description

@holtgrewe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions