Event script when user register via OAuth

Hi,
I need to duplicate user information to another database when user register via OAuth. Is there a way we can do this with server-side scripting?

Thanks