1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! # go_true
//!
//! [GoTrue][gotrue] client-side library.
//!
//! ## Usage
//! Add the following line to your `Cargo.toml`:
//!
//! ```toml
//! go_true = "0.1.0"
//! ```
//!
//! ## Examples
//!
//! To create an account, create a new client and execute the `sign_up` function with email and password:
//!
//! ```rust
//! use go_true::{Client, EmailOrPhone};
//!
//! #[tokio::main]
//! async fn main() {
//! let url = "http://localhost:9998".to_string();
//! let mut client = Client::new(url);
//!
//! let email = "email@example.com".to_string();
//! let password = "Abcd1234!".to_string();
//!
//! let session = client.sign_up(EmailOrPhone::Email(email), &password).await;
//!
//! println!("{:?}", session);
//! }
//! ```
//!
//! Check out the [README][readme] for more info.
//!
//! [gotrue]: https://github.com/supabase/gotrue
//! [readme]: https://github.com/fubinator/gotrue-rs
pub use Api;
pub use EmailOrPhone;
pub use Client;
pub use UserAttributes;