Skip to content

Commit b8a5655

Browse files
committed
chore: change default token validity interval to 1h
1 parent a01a3ac commit b8a5655

File tree

1 file changed

+4
-1
lines changed
  • projects/fal/src/fal/toolkit/file/providers

1 file changed

+4
-1
lines changed

projects/fal/src/fal/toolkit/file/providers/fal.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,10 @@ def __init__(self):
129129
)
130130
self._lock: threading.Lock = threading.Lock()
131131

132-
def get_token(self, valid_for: timedelta | int | None = None) -> FalV2Token:
132+
def get_token(
133+
self,
134+
valid_for: timedelta | int | None = timedelta(hours=1),
135+
) -> FalV2Token:
133136
"""
134137
Get a valid authentication token.
135138

0 commit comments

Comments
 (0)