3 releases
0.1.2 | May 18, 2023 |
---|---|
0.1.1 | Apr 14, 2023 |
0.1.0 | Mar 31, 2023 |
#636 in Authentication
34 downloads per month
13KB
238 lines
🦀 Supabase-rust
supabase-rust
is a light Rust wrapper around the Supabase REST API.
Features
- Client creation
- Sign-in email/pass
- Signup email/pass
- Signup phone/pass
- Token refresh
- Logout
- Verify one-time token
- Authorize external OAuth provicder
- Password recovery
- Resend one-time password over email or SMS
- Magic link authentication
- One-time password authentication
- Retrieval of user's information
- Reauthentication of a password change
- Enrollment of MFA
- MFA challenge and verify
- OAuth callback
- All SSO
- All Admin
- All Database support
Quickstart
Add the following dependency to your toml file:
[dependencies]
supabase_rust = "0.1.0"
You can initialize the two configuration keys either inline in the intialization or via environment variables (SUPABASE_API_KEY
and SUPABASE_URL
).
Tips
The Supabase team has an outline of their OpenAPI specs over in this yaml file.
License
Supabase-rust is available under the MIT license, see the LICENSE file for more information.
Dependencies
~12–25MB
~455K SLoC