feature/implement-external-login-api #30
@@ -62,13 +62,12 @@ public class HomeBoxConnectionProvider implements ConnectionProvider {
|
|||||||
@Override
|
@Override
|
||||||
public void updateToRepository(ConnectionEntity existing, ConnectionResponse response) {
|
public void updateToRepository(ConnectionEntity existing, ConnectionResponse response) {
|
||||||
|
|
||||||
|
|
||||||
if (existing instanceof HomeboxEntity hbE) {
|
if (existing instanceof HomeboxEntity hbE) {
|
||||||
|
|
||||||
hbE.setToken(response.token());
|
hbE.setToken(response.token());
|
||||||
hbE.setExpiresAt(response.expiresAt());
|
hbE.setExpiresAt(response.expiresAt());
|
||||||
hbE.setAttachmentToken(response.getExtraVar("attachmentToken"));
|
hbE.setAttachmentToken(response.getExtraVar("attachmentToken"));
|
||||||
|
|
||||||
cRepository.save(hbE);
|
cRepository.save(hbE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user