blob: d16c0f3161f89482dc85936ca12e749828718d1a (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
from __future__ import annotations
from datetime import datetime
from typing import Dict
from .version import __version__
GOTRUE_URL = "http://localhost:9999"
DEFAULT_HEADERS: Dict[str, str] = {
"X-Client-Info": f"gotrue-py/{__version__}",
}
EXPIRY_MARGIN = 10 # seconds
MAX_RETRIES = 10
RETRY_INTERVAL = 2 # deciseconds
STORAGE_KEY = "supabase.auth.token"
API_VERSION_HEADER_NAME = "X-Supabase-Api-Version"
API_VERSIONS = {
"2024-01-01": {
"timestamp": datetime.timestamp(datetime.strptime("2024-01-01", "%Y-%m-%d")),
"name": "2024-01-01",
},
}
|