Skip to content

Commit

Permalink
Fix first time device registration
Browse files Browse the repository at this point in the history
  • Loading branch information
melegiul committed Oct 5, 2022
1 parent aaf1cd0 commit b158f85
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ public TrustedDeviceModel lookupTrustedDevice(KeycloakSession session, RealmMode

TrustedDeviceRepository repo = new TrustedDeviceRepository(session);
TrustedDeviceEntity entity = repo.lookupTrustedDevice(realm.getId(), user.getId(), deviceId);
if (entity == null) {
return null;
}

return toModel(entity);
}
Expand Down

0 comments on commit b158f85

Please sign in to comment.