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
  1. Legacy

Redirect

To sync a UMI account with a game through a link, you can follow these steps:

  1. When a user clicks on the "Play Now" button in Umiverse, they will be redirected to your game through a link that contains UMI_UID, ts, and signature parameters.

  2. Use these three parameters to automatically register the user and allow them to experience your game.

// example

const umi_uid = 1;
const ts = 1686026506;
const secretkey = 'umikey';
const params = {uid:umi_uid};

const sign = generateSign(params, secretKey, ts);


const url = `https://yourgame.com/game?uid=${umi_uid}&ts=${ts}&sign=${sign}`;
console.log(url);
/**
* output:
* https://yourgame.com/game?uid=1&ts=1686026506&sign=2d5e4e7d5a9f1b6b0d6d2d7d8e4e9b1f
*/

PreviousDeduct an item from a playerNextAdd Game Information

Last updated 1 year ago