From 51f1ddc0c2392bf1e42e0e97ccf07df8111acb52 Mon Sep 17 00:00:00 2001 From: Simone Cottini Date: Wed, 22 May 2024 10:27:24 +0200 Subject: [PATCH] Scope field is optional --- src/auth0/token.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/auth0/token.rs b/src/auth0/token.rs index aeacab2..e0a1610 100644 --- a/src/auth0/token.rs +++ b/src/auth0/token.rs @@ -104,10 +104,12 @@ impl Token { } } +/// The successful response received from the authorization server containing the access token. +/// Related [RFC](https://www.rfc-editor.org/rfc/rfc6749#section-5.1) #[derive(Deserialize, Serialize, Debug)] struct FetchTokenResponse { access_token: String, - scope: String, + scope: Option, expires_in: i32, token_type: String, }