You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Describe the bug
The
OAuthAccount.expires_at
field 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_at
value.Expected behavior
Dates in 2043 should work.
Configuration
FastAPI Users configuration
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: