Issue a user identification key
Issuing a user identification key is a feature that helps you reliably identify users inside a mini app without any separate server integration or user consent process.
The moment a user enters the mini app, a mini app semi-member profile for that user is created. Based on this user, the mini app can manage information such as service usage data, stored data, rankings, and points.
What is a user identification key?
A user identification key is a unique key value used to distinguish one user within a mini app. It helps the mini app reliably recognize the same user internally without directly exposing the user's personal information.
The returned user identifier is unique to each mini app. Even for the same Toss user, different identification keys are used in different mini apps.
How it is used by mini app type
The method for issuing a user identification key differs depending on the mini app type.
Game
Game user identification
Used when managing game data, rankings, points, save data, and more on a per-user basis.
Non-game
General mini app user identification
Used when managing service usage history, user-specific settings, stored data, and more on a per-user basis.
Game mini app
In a game mini app, you receive a user identification key as a dedicated method for identifying users inside the game. Without showing a separate authentication screen like Toss Login, you can use a unique user identifier inside the game mini app.
This identification key is valid only within the corresponding game mini app. It can be used for data that needs to be connected based on the user, such as in-game data storage, ranking management, point management, and save data management.
Non-game mini app
In non-game mini apps, you receive a user identification key as a method for identifying users within a general service. Without a separate authentication screen or server integration, you can use a unique user identifier inside the mini app.
This identification key is valid only within the corresponding mini app. It can be used for data that must be managed based on the user, such as user-specific settings, usage history, and stored data.
Examples of using the user identification key
The user identification key can be used when you need to continue managing data based on the user inside the mini app.
Managing a user's service usage history
Saving user-specific settings
Managing game rankings, points, and save data
Restoring a returning user's previous state
Building personalized experiences provided without login
Develop
How to receive a user identification key in a non-game mini app is User.getAnonymousKeyPlease check here.
Was this helpful?