Untitled

user_1095306 avatar
user_1095306
plain_text
09/07/2023 5:57 AM
372 B
14
Indexable
fn from_response(auth: AuthenticationResponse, provider: AuthProvider) -> Self {
		StoredCredential {
			provider,
			access_token: auth.access_token,
			refresh_token: auth.refresh_token,
			expires_at: auth.expires_in.map(|e| Utc::now() + Duration::seconds(e)),
		}
	}
Editor is loading...