We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f263e1 commit d098cd7Copy full SHA for d098cd7
1 file changed
packages/providers/shield-oidc/src/provider.rs
@@ -151,10 +151,10 @@ impl<U: User> OidcProvider<U> {
151
id: connection_id,
152
token_type: Some(token_type),
153
access_token: Some(access_token),
154
- refresh_token: Some(refresh_token),
155
- id_token: Some(id_token),
156
- expired_at: Some(expired_at),
157
- scopes: Some(scopes),
+ refresh_token: refresh_token.map(Some),
+ id_token: id_token.map(Some),
+ expired_at: expired_at.map(Some),
+ scopes: scopes.map(Some),
158
})
159
.await
160
.map_err(ShieldError::Storage)
0 commit comments