3 releases

0.1.2 May 18, 2023
0.1.1 Apr 14, 2023
0.1.0 Mar 31, 2023

#2 in #logout

Download history 6/week @ 2024-02-18 67/week @ 2024-02-25 23/week @ 2024-03-03 14/week @ 2024-03-10 1/week @ 2024-03-17 35/week @ 2024-03-24 38/week @ 2024-03-31 1/week @ 2024-04-07

74 downloads per month

MIT license

13KB
238 lines

🦀 Supabase-rust

supabase-rust is a light Rust wrapper around the Supabase REST API.

Crates.io MIT licensed Build Status

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
~488K SLoC