From b44f27e170855927c7426d3a826aa70dd19b612e Mon Sep 17 00:00:00 2001 From: Eric Biggs Date: Sat, 25 Jan 2025 15:38:32 -0500 Subject: [PATCH] Client is now clone Resolves #17 --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/models.rs | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 28c6a50..33fbb1f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1071,7 +1071,7 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" [[package]] name = "supabase-auth" -version = "0.10.8" +version = "0.10.9" dependencies = [ "reqwest", "serde", diff --git a/Cargo.toml b/Cargo.toml index 30aa736..d978172 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "supabase-auth" authors = ["Eric Biggs"] description = "Supabase Auth implementation following the official client libraries." readme = "README.md" -version = "0.10.8" +version = "0.10.9" edition = "2021" license = "MIT OR Apache-2.0" keywords = ["supabase", "supabase-auth", "authentication", "auth"] diff --git a/src/models.rs b/src/models.rs index 56b11cc..e90f265 100644 --- a/src/models.rs +++ b/src/models.rs @@ -7,6 +7,7 @@ use serde_json::Value; use std::{collections::HashMap, fmt::Display}; /// Supabase Auth Client +#[derive(Clone)] pub struct AuthClient { pub(crate) client: Client, /// REST endpoint for querying and managing your database