Skip to content

Commit

Permalink
Update to latest supabase-py (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
silentworks committed Nov 23, 2023
1 parent 12b4ccd commit aa7cbd8
Show file tree
Hide file tree
Showing 4 changed files with 285 additions and 349 deletions.
4 changes: 2 additions & 2 deletions app/supabase.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
from flask import g
from werkzeug.local import LocalProxy
from supabase.client import create_client, Client, ClientOptions
from supabase.client import Client, ClientOptions
from app.flask_storage import FlaskSessionStorage
from gotrue.errors import AuthApiError, AuthRetryableError
from gotrue.types import User
Expand All @@ -14,7 +14,7 @@

def get_supabase() -> Client:
if "supabase" not in g:
g.supabase: Client = create_client(
g.supabase = Client(
url,
key,
options=ClientOptions(storage=FlaskSessionStorage(), flow_type="pkce"),
Expand Down
Loading

0 comments on commit aa7cbd8

Please sign in to comment.