You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a Python port of the [supabase js gotrue client](https://github.com/supabase/gotrue-js). The current state is that there is a features parity but with small differences that are mentioned in the section **Differences to the JS client**. As of December 14th, we renamed to repo from `gotrue-py` to `auth-py` to mirror the changes in the JavaScript library.
16
9
17
10
## Installation
18
11
19
-
We are still working on making the `supabase_auth` python library more user-friendly. For now here are some sparse notes on how to install the module.
12
+
The package can be installed using pip or poetry:
20
13
21
14
### Poetry
22
15
@@ -30,6 +23,19 @@ poetry add supabase_auth
30
23
pip install supabase_auth
31
24
```
32
25
26
+
## Features
27
+
28
+
- Full feature parity with the JavaScript client
29
+
- Support for both synchronous and asynchronous operations
30
+
- MFA (Multi-Factor Authentication) support
31
+
- OAuth and SSO integration
32
+
- Magic link and OTP authentication
33
+
- Phone number authentication
34
+
- Anonymous sign-in
35
+
- Session management with auto-refresh
36
+
- JWT token handling and verification
37
+
- User management and profile updates
38
+
33
39
## Differences to the JS client
34
40
35
41
It should be noted there are differences to the [JS client](https://github.com/supabase/gotrue-js). If you feel particulaly strongly about them and want to motivate a change, feel free to make a GitHub issue and we can discuss it there.
@@ -48,11 +54,11 @@ The other key difference is we do not use pascalCase to encode variable and meth
48
54
49
55
Also, the `supabase_auth` library for Python parses the date-time string into `datetime` Python objects. The [JS client](https://github.com/supabase/gotrue-js) keeps the date-time as strings.
50
56
51
-
## Usage (outdated)
57
+
## Usage
52
58
53
-
**Important:** This section is outdated, you can be guided by the [JS client documentation](https://supabase.github.io/gotrue-js) because this Python client has a lot of parity with the JS client.
59
+
The library provides both synchronous and asynchronous clients. Here are some examples:
54
60
55
-
To instantiate the client, you'll need the URL and any request headers at a minimum.
0 commit comments