Skip to main content

User

Overview about User Module

Provides functions that support Merchant's application for accessing user information

List of supported SDK functions

FunctionDescription
User AuthorizationUser authorization flow
getOauthV1CodeObtain user authorization code
getPublicProfileGet public user profile(name, avatar, user id). Apply for merchant that just want to get the basic user information without setting up a server in the User authorization flow
generateCodeVerifiergenerates a high-entropy cryptographic random string used as the code verifier in the PKCE (Proof Key for Code Exchange) flow for OAuth 2.0 authorization. Apply for merchant that just want to get the basic user information without setting up a server in the User authorization flow
generateCodeChallengegenerates a code challenge for PKCE (Proof Key for Code Exchange) based OAuth 2.0 authorization flows. This is used to securely exchange authorization codes in OAuth 2.0 flows.