Skip to content

Commit 3b63a6c

Browse files
authored
refresh tokens contain scope fields, not scopes (#468)
1 parent 79cde32 commit 3b63a6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/identity/src/refresh_token.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pub async fn exchange(
6868
#[derive(Debug, Clone, Deserialize)]
6969
pub struct RefreshTokenResponse {
7070
token_type: String,
71-
#[serde(deserialize_with = "deserialize::split")]
71+
#[serde(rename = "scope", deserialize_with = "deserialize::split")]
7272
scopes: Vec<String>,
7373
expires_in: u64,
7474
ext_expires_in: u64,

0 commit comments

Comments
 (0)