Skip to content

Commit d098cd7

Browse files
Shield OIDC: Remove connection update overriding
1 parent 8f263e1 commit d098cd7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/providers/shield-oidc/src/provider.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,10 @@ impl<U: User> OidcProvider<U> {
151151
id: connection_id,
152152
token_type: Some(token_type),
153153
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),
154+
refresh_token: refresh_token.map(Some),
155+
id_token: id_token.map(Some),
156+
expired_at: expired_at.map(Some),
157+
scopes: scopes.map(Some),
158158
})
159159
.await
160160
.map_err(ShieldError::Storage)

0 commit comments

Comments
 (0)