Embedded Lock SKD redirection

Hi Team,

We want to know if using Embedded login using Lock SKD in sub domain(abc.sample.com/login) and redirect after successful login or register to main domain(sample.com/viewprofile). Will the user data will be able to capture in main domain.

Is this possible using lock SDK. If yes, share the details with some samples.

Rajasekar D