How can I implement sharing login like SSO?

I have a question about sharing logins like SSO.

As a background, I am currently developing one service using another company’s server and Velo.

I use a domain called “megu.green” on another company’s server.

I am creating an EC site “store.megu.green” with Velo.
The main domain is “megu.green”, and my users can go back and forth between “store.megu.green”(This is subdomain) and “megu.green” in the global header.

I already tested our users to be able to resister as a new member at “store.megu.green” after registering as a new member at “megu.green”.

However, how can I do to our users to be logged in with “store.megu.green” after they log in with “megu.green”?

Is there any way?

I’m looking for a way to do it with “applySessionToken” acquired by API or LocalStorage.
I would like my users to avoid the action of logging in twice.

Hey please take a look here:

1 Like

Thank for your reply!
I’d like to use your document as a reference.

@hattori Happy to help :slight_smile: