Face Liveness Detection in OpenCV

I have been working with OpenCV (4.8.0) in order to perform face recognition tasks in C++. I have been searching but have not been able to find any code examples to deal with spoofing attacks. Does OpenCV provide any method to detect face liveness? and if it so, is there any example code that can i look at?

sorry, but there is no such thing builtin,
you’ll have to try your own ideas