UMIVERSE SDK
  • UMIVERSE SDK Doc
    • Overview
    • Configure Secret Key and API Domain
    • Sync Account
      • OAuth login
        • Preparations for OAuth
        • Use Authorization_Code to get UMI_UID
        • Decrypt Authorization Code
          • AES Decrypt
    • Dive Points
      • Increase DivePoint
        • API
      • Mission System
        • Request task panel view in H5 game
    • Game Recharge
      • Initiate Recharge Request
      • Handle Recharge Completion
  • Signature
    • Typescript
    • PHP
    • Java
    • C++
  • SDK DEMO
  • Legacy
    • API Key/Secret
    • SignUp & SignIn
    • Get UMI UID
    • Authentication
    • Umiverse Features
      • Mint
      • Send a server-generated item to Umi account
      • Get all items that the player can put up for sale
      • Send an item to a player
      • Deduct an item from a player
    • Redirect
  • Developer Console
    • Add Game Information
Powered by GitBook
On this page
  • OAuth login:
  • Redirect:
  1. UMIVERSE SDK Doc

Sync Account

PreviousConfigure Secret Key and API DomainNextOAuth login

Last updated 5 months ago

Sync account is a feature that allows you to synchronize the users' Umiverse platform accounts to your game.

SDK DEMO: https://github.com/umiverse-io-v2/umi-oauth-demo

There are two ways to sync your account: OAuth login and redirect. OAuth login is suitable for mobile/desktop games, while redirect is suitable for HTML5 games. Here's an overview of each method:

OAuth login:

  1. OAuth is a type of authorization mechanism that allows a user to grant access to their account to a third-party application without sharing their password.

  2. OAuth login is typically used for mobile/desktop games, where the user logs in to the game using their OAuth credentials.

  3. The game then uses the OAuth access token to access the user's account information and game data.

  4. OAuth login is a secure way to access a user's account without requiring the user to share their password with the game.

Redirect:

  1. Redirect is a method of syncing accounts that is typically used for HTML5 games.

  2. In this method, the user's UID information is included in the link that is used to access the game.

  3. When the user clicks on the link, the game reads the UID information and uses it to sync the user's account.

  4. Redirect is a convenient way to sync accounts for HTML5 games, as it does not require the user to log in to the game separately.

UMI Oauth workflow