지원 프로그램
home
슬기로운 데모생활
home

Get Token Information

생성일
2024/03/14 04:19
태그
To get token information of the STOVE launcher user, call the UMyStoveSDKObject::StoveSDKGetToken function and the superclass Super::StoveSDKGetToken function to obtain it. After calling the StoveSDKGetToken function, you can check the token information as an argument of the callback OnToken function.
MyStoveSDKObject.cpp
FStoveResult UMyStoveSDKObject::StoveSDKGetToken() { /*Add the 'walkthrough' codes here.*/ FStoveResult ErrorResult = Super::StoveSDKGetToken(); if (ErrorResult.Result == StovePCResult::STOVE_PC_NO_ERROR) { OnLog("[Success] StovePC_GetToken"); } else { OnLog("[Error] StovePC_GetToken, Result %d", ErrorResult.Result); } return ErrorResult; }
C++
복사
What is a token? It is the access token of the logged-in user in STOVE Client, and the game server passes this access token to the stove authentication server to validate the logged-in user. For a detailed explanation of Access Token, please get in touch with STOVE Store Support for technical support.
When you call the StoveSDKGetToken function usually, you can check the token information through FStoveToken, the argument of the callback OnToken function.
void UMyStoveSDKObject::OnToken(FStoveToken Token) { /*Add the 'walkthrough' codes here.*/ OnLog("[Token]"); OnLog("Token : %s", *(Token.AccessToken)); }
C++
복사