@Adedayo Yes, this should be possible with the Face API using the JS SDK.
In this case you need to use the Face API detect API first to detect a face in the stream or image which in turn returns a face id in the response which is valid for 24 hours. You would need to call the API for images from your client side and external API to get the face ids.
Once the face ids are returned from detect you need to verify if the faces belongs to the same person. For this, you need to call the face verify API.
There are also other options to create person groups that will basically store face ids until they are deleted and verification can be done against a person group to detect a face in the group.
For a basic requirement to verify faces the above API's should help you get started. I hope this helps!!
If an answer is helpful, please click on or upvote which might help other community members reading this thread.