-
-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from supabase-community/jl--add-new-release
Update Files For new release
- Loading branch information
Showing
12 changed files
with
188 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
__version__ = "0.0.3" | ||
__version__ = "0.1.1" | ||
|
||
from supabase import client, lib | ||
from supabase.client import Client, create_client | ||
|
||
__all__ = ["client", "lib", "Client", "create_client"] | ||
from supabase.lib.auth_client import SupabaseAuthClient | ||
from supabase.lib.realtime_client import SupabaseRealtimeClient | ||
from supabase.lib.storage_client import SupabaseStorageClient |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,39 @@ | ||
from typing import Any, Dict | ||
from typing import Dict, Optional | ||
|
||
import gotrue | ||
from gotrue import ( | ||
CookieOptions, | ||
SyncGoTrueAPI, | ||
SyncGoTrueClient, | ||
SyncMemoryStorage, | ||
SyncSupportedStorage, | ||
) | ||
from gotrue.constants import COOKIE_OPTIONS | ||
|
||
|
||
class SupabaseAuthClient(gotrue.Client): | ||
class SupabaseAuthClient(SyncGoTrueClient): | ||
"""SupabaseAuthClient""" | ||
|
||
def __init__( | ||
self, | ||
*, | ||
url: str, | ||
detect_session_in_url: bool = False, | ||
auto_refresh_token: bool = False, | ||
persist_session: bool = False, | ||
local_storage: Dict[str, Any] = {}, | ||
headers: Dict[str, str] = {}, | ||
auto_refresh_token: bool = True, | ||
persist_session: bool = True, | ||
local_storage: SyncSupportedStorage = SyncMemoryStorage(), | ||
cookie_options: CookieOptions = CookieOptions.parse_obj(COOKIE_OPTIONS), | ||
api: Optional[SyncGoTrueAPI] = None, | ||
replace_default_headers: bool = False, | ||
): | ||
"""Instanciate SupabaseAuthClient instance.""" | ||
super().__init__( | ||
SyncGoTrueClient.__init__( | ||
self, | ||
url=url, | ||
headers=headers, | ||
detect_session_in_url=detect_session_in_url, | ||
auto_refresh_token=auto_refresh_token, | ||
persist_session=persist_session, | ||
local_storage=local_storage, | ||
cookie_options=cookie_options, | ||
api=api, | ||
replace_default_headers=replace_default_headers, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters