I have implemented supertoken's login page on the ...
# support-questions-legacy
t
I have implemented supertoken's login page on the URL https://pcc-stage.fairmatic.com/auth . I have implemented a redirection from https://stage01-post-bind-platform.stage.fairmatic.org/admin/policydata/ to https://pcc-stage.fairmatic.com/auth for auth . My use case is that once authenticated on https://pcc-stage.fairmatic.com/auth , I want to redirect the user to https://stage01-post-bind-platform.stage.fairmatic.org/admin/policydata/ basically to the path from where the request came from . How can I do it in the frontend sdk ?
r
we do not do auto redirections actoss sub domains. Only to different path within the same domain
if you want to implement this, you will have to manually handle redirection. From subdomain -> auth domain on some path where you save the redirection in localstorage -> navigate to /auth -> navigates back to the redirection path -> manually navigate to the original sub domain based on whats in localstorage