Skip to content

Commit

Permalink
AuthClient visibility change
Browse files Browse the repository at this point in the history
  • Loading branch information
Proziam committed Sep 23, 2024
1 parent 17531f0 commit bc6a90e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/models.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
use core::fmt;
use reqwest::Client;
use serde::{Deserialize, Serialize};
use std::{collections::HashMap, fmt::Display};

/// Supabase Auth Client
pub struct AuthClient {
pub(crate) client: Client,
/// REST endpoint for querying and managing your database
/// Example: https://<project id>.supabase.co
pub(crate) project_url: String,
/// WARN: The `service role` key has the ability to bypass Row Level Security. Never share it publicly.
pub(crate) api_key: String,
/// Used to decode your JWTs. You can also use this to mint your own JWTs.
pub(crate) jwt_secret: String,
}

#[derive(Default, Debug, Clone, Serialize, Deserialize)]
pub struct Session {
pub access_token: String,
Expand Down

0 comments on commit bc6a90e

Please sign in to comment.