Account Transfer

개요

The page shows which account this browser is signed in as and issues a transfer code (an ID and a password) for it. Entering that code in another browser signs that browser in as the same account. All showroom demos in one browser share the account, so after a take-over the other demos show the original account’s data as well.

체험 방법

  1. The top of Your transfer code reads This browser is signed in as …, naming this browser’s account. Until a code is issued, the ID line shows None issued yet.
  2. Press Issue a transfer code; an ID like demo-XXXX-XXXX and a password like XXXX-XXXX-XXXX-XXXX appear. The password is shown only this once, so press Copy the ID and password.
  3. Open this demo in another browser (or a private window) and enter the ID and password under Take over another browser’s account, or use Paste the ID and password.
  4. Press Take over that account; the page reloads and that browser is now signed in as the original account.
  5. If the password is lost, press Delete and reissue in the original browser: the old code stops working and a new one is issued.

The account a browser used before a take-over cannot be reached from it again, so a private window is the safest place to try it.

사용하는 GS2 서비스

  • GS2-Account: GS2-Account stores the transfer ID and a hash of the password as a take-over setting. Taking over returns the credentials of the account the code belongs to, so another browser can sign in as it.

GS2 Studio에서 사용하기

GS2 Studio의 Simple 모드에서 Add features 를 열고 Account Transfer 의 Add 를 누르면 이 기능을 자신의 프로젝트에 가져올 수 있습니다. 패키지를 직접 지정하려면 Add from GitHub 를 선택하고 아래 패키지를 입력합니다.

https://github.com/gs2io/gs2-studio-package/tree/main/foundation-core-identity/packages/foundation-core-identity
  • Owner: gs2io
  • Repository: gs2-studio-package
  • Subdirectory: foundation-core-identity/packages/foundation-core-identity

소스 코드