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:
- Setup fastapi-users with OAuth2.
- Authenticate with a provider who returns a sufficiently large
expires_at value.
- 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
Describe the bug
The
OAuthAccount.expires_atfield is anInteger. 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:
expires_atvalue.Expected behavior
Dates in 2043 should work.
Configuration
FastAPI Users configuration
N/A
Additional context
N/A