Is it possible to combine webrtc client with nucleus authentication

I’m using webrtc to do remote control, but there is no authentication to protect the acces at all, anyone knows the webrtc client link can visit my Kit App.
On the other hand, Nucleus provided a nice to do authentication work, but is it possible to combine these two, I already did some digging, and find the way to direct webrtc-client access to the Nucleus login page, but don’t know how to redirect back to the webrtc-client.