Is it real to fork current user session?
For example:
We have domain.com with currently implemented authentication by AWS Cognito service with Amplify SDK on the client.
And now we have to move some big part of functional to subdomain sub.domain.com.
The main questions are:
signIn place at domain.com for both domains and just implement something like a session fork for sub.domain.com (cause if we will just share the same session between domain and subdomain there are some issues might be with refeshToken, cause it's disposable)domain.com (already exists) and sub.domain.com (the last one will be)AWS Cognito at back and Amplify SDK at frontdomain.com and sub.domain.com have to share the same UserPool and UserPoolClientsub.domain.com mustn't have a signIn or signUp functioanlitysub.domain.com still have to maintain and update the session (bacause of 4 step)sub.domain.com and you are already logged in at domain.com, everything is fine (user profile/some private data is shared between these two apps) and user can use app at sub.domain.comsub.domain.com but he isn't authorized already at domain.com, app at sub.domain.com have to detect this and notify user that he have to authorize at domain.com at first. And after user did this, sub.domain.com will automaticaly get session from domain.comSo, is there might be some various of implementation of this logic such as session fork, or something like that?