Skip to content

Commit 8906ecb

Browse files
committed
Merge pull request #25 from MrAdhit/main
Fix incorrect serializing Version bump
2 parents 13b5ce6 + 8150d46 commit 8906ecb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "supabase-auth"
33
authors = ["Eric Biggs"]
44
description = "Supabase Auth implementation following the official client libraries."
55
readme = "README.md"
6-
version = "0.10.10"
6+
version = "0.10.11"
77
edition = "2021"
88
license = "MIT OR Apache-2.0"
99
keywords = ["supabase", "supabase-auth", "authentication", "auth"]

src/models.rs

+2
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ pub struct IdTokenCredentials {
103103
/// Provider name or OIDC `iss` value identifying which provider should be used to verify the provided token.
104104
pub provider: Provider,
105105
/// OIDC ID token issued by the specified provider. The iss claim in the ID token must match the supplied provider. Some ID tokens contain an at_hash which require that you provide an access_token value to be accepted properly. If the token contains a nonce claim you must supply the nonce used to obtain the ID token.
106+
#[serde(rename = "id_token")]
106107
pub token: String,
107108
/// If the ID token contains an at_hash claim, then the hash of this value is compared to the value in the ID token.
108109
pub access_token: Option<String>,
@@ -463,6 +464,7 @@ pub struct External {
463464
}
464465

465466
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
467+
#[serde(rename_all = "snake_case")]
466468
/// Currently enabled OAuth providers.
467469
///
468470
/// # Example

0 commit comments

Comments
 (0)