User Info API
Game scripts use the sud user info APIs to sign in and retrieve user information. Exchanging code for session data and verifying and decrypting sensitive data are both handled by Game SVR; the client takes no part in either. See Session Management.
| API | Purpose | Data level |
|---|---|---|
| sud.login | Obtain a single-use temporary login credential code | Authentication credential |
| sud.getUserInfo | Obtain basic information such as nickname and avatar | Public information, no encryption flow |
| sud.getUserProfile | Obtain encrypted and signed sensitive information | Sensitive information, must be decrypted by Game SVR |
All three are callback-based APIs that report results through success / fail / complete and do not return a Promise.
For the complete flow, a sequence diagram, and copy-ready orchestration code, see Login and User Info Retrieval Flow.
