datacipen commited on
Commit
706b1d1
·
verified ·
1 Parent(s): ceae0a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=True))
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=auth[0]['ident'],
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: