Crates.io | go_true |
lib.rs | go_true |
version | 0.1.1 |
source | src |
created_at | 2022-07-02 14:56:49.137466 |
updated_at | 2022-07-23 08:25:30.520588 |
description | GoTrue client written in rust |
homepage | https://github.com/Fubinator/gotrue-rs |
repository | https://github.com/Fubinator/gotrue-rs |
max_upload_size | |
id | 617835 |
size | 61,320 |
This is a GoTrue client implementation in rust. The library is currently under development. Most of the features are already built in, but there are still some changes to be made and everything still needs to be documented.
Add the following line to your Cargo.toml
:
go_true = "0.1.1"
To create an account, create a new client and execute the sign_up
function with email and password:
use go_true::Client;
#[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(&email, &password).await;
println!("{:?}", session);
}
For more information, check out the API docs!
The first thing to do is to start the supabase server in docker:
cd infra
docker compose up
Once the server has been started, the tests can be run:
cargo test --tests
Contributions, issues and feature requests are welcome. Feel free to check out the issues page if you want to contribute.