Update app.py
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ CONNINFO = os.environ.get("CONNINFO")
|
|
| 43 |
|
| 44 |
url: str = SUPABASE_URL
|
| 45 |
key: str = SUPABASE_ANON_KEY
|
| 46 |
-
supabase: Client = create_client(url, key, options=ClientOptions(auto_refresh_token=False,persist_session=
|
| 47 |
|
| 48 |
# =============================================================================
|
| 49 |
# CONFIGURATION DE L'AUTHENTIFICATION (Optionnel)
|
|
@@ -65,7 +65,7 @@ def auth_callback(username: str, password: str) -> Optional[cl.User]:
|
|
| 65 |
|
| 66 |
if resultLogAdmin == True and resultPwdAdmin == True and resultRole == "adminavid":
|
| 67 |
return cl.User(
|
| 68 |
-
identifier=
|
| 69 |
metadata={"role": "adminavid", "provider": "credentials"}
|
| 70 |
)
|
| 71 |
else:
|
|
|
|
| 43 |
|
| 44 |
url: str = SUPABASE_URL
|
| 45 |
key: str = SUPABASE_ANON_KEY
|
| 46 |
+
supabase: Client = create_client(url, key, options=ClientOptions(auto_refresh_token=False,persist_session=False))
|
| 47 |
|
| 48 |
# =============================================================================
|
| 49 |
# CONFIGURATION DE L'AUTHENTIFICATION (Optionnel)
|
|
|
|
| 65 |
|
| 66 |
if resultLogAdmin == True and resultPwdAdmin == True and resultRole == "adminavid":
|
| 67 |
return cl.User(
|
| 68 |
+
identifier=pwd,
|
| 69 |
metadata={"role": "adminavid", "provider": "credentials"}
|
| 70 |
)
|
| 71 |
else:
|