9 releases
new 0.1.8 | Sep 18, 2024 |
---|---|
0.1.7 | Sep 15, 2024 |
#202 in Authentication
609 downloads per month
32KB
727 lines
Auth-rs
This is a Rust implementation of the supabase js auth client. As of now, this is alpha software and breaking changes are a certainty. The goal is to have feature parity and an easy-to-use API.
Installation
Cargo
cargo add supabase-auth
Differences to the JS client
It should be noted there are, and will likely always be, differences to the JS client. If something bothers you enough, contributions are welcome.
Any features which are currently deprecated in the JS client will not be supported.
Usage (Won't be updated until 1.0.0)
// We're doing cool stuff in here
Features
- Create Client
- Sign In with Email & Password
- Sign In with Phone & Password
- Sign Up with Email & Password
- Sign Up with Phone & Password
- Sign In with Third Party Auth (OAuth)
- Sign In with Magic Link
- Send Sign-In OTP (Email, SMS, Whatsapp)
- Sign In with OTP
- Refresh Session
- Resend OTP Tokens (Email & SMS)
- Retrieve User
- Reset Password
- Change User Data (e.g., Email or password)
Contributions
Contributors are always welcome. I only ask that you add or update tests to cover your changes. Until this crate reaches 1.0.0 we're in the "move fast and break things" phase. Don't concern yourself with elegance.
Dependencies
~6–17MB
~236K SLoC