\hypertarget{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_renew_token_error_code}{}\doxysection{io.\+agora.\+rtc2.\+Constants.\+Renew\+Token\+Error\+Code Enum Reference}
\label{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_renew_token_error_code}\index{io.agora.rtc2.Constants.RenewTokenErrorCode@{io.agora.rtc2.Constants.RenewTokenErrorCode}}


Represents the error codes after calling {\ttfamily renew\+Token}.  


\doxysubsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_renew_token_error_code_ac82cc450c8da67fd8e9584145edf32e2}\label{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_renew_token_error_code_ac82cc450c8da67fd8e9584145edf32e2}} 
static int {\bfseries get\+Value} (\mbox{\hyperlink{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_renew_token_error_code}{Renew\+Token\+Error\+Code}} code)
\item 
\mbox{\Hypertarget{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_renew_token_error_code_a9c28ce868dfa31c5cbd045cd3b9e987f}\label{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_renew_token_error_code_a9c28ce868dfa31c5cbd045cd3b9e987f}} 
static \mbox{\hyperlink{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_renew_token_error_code}{Renew\+Token\+Error\+Code}} {\bfseries from\+Int} (int v)
\end{DoxyCompactItemize}
\doxysubsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_renew_token_error_code_a23211473973b1a48dff29146141e3d0c}{R\+E\+N\+E\+W\+\_\+\+T\+O\+K\+E\+N\+\_\+\+S\+U\+C\+C\+E\+SS}} =(0)
\item 
\mbox{\hyperlink{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_renew_token_error_code_aad75122fcf193866418eacb9ab696052}{R\+E\+N\+E\+W\+\_\+\+T\+O\+K\+E\+N\+\_\+\+F\+A\+I\+L\+U\+RE}} =(1)
\item 
\mbox{\hyperlink{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_renew_token_error_code_a5b0ac4f7995790a9461dbd81be751a69}{R\+E\+N\+E\+W\+\_\+\+T\+O\+K\+E\+N\+\_\+\+T\+O\+K\+E\+N\+\_\+\+E\+X\+P\+I\+R\+ED}} =(2)
\item 
\mbox{\hyperlink{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_renew_token_error_code_ae78b04dc1d6337d6b86fc4687f51c516}{R\+E\+N\+E\+W\+\_\+\+T\+O\+K\+E\+N\+\_\+\+I\+N\+V\+A\+L\+I\+D\+\_\+\+T\+O\+K\+EN}} =(3)
\item 
\mbox{\hyperlink{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_renew_token_error_code_ae39be1b3980b3b9322f50ce22c712fb8}{R\+E\+N\+E\+W\+\_\+\+T\+O\+K\+E\+N\+\_\+\+I\+N\+V\+A\+L\+I\+D\+\_\+\+C\+H\+A\+N\+N\+E\+L\+\_\+\+N\+A\+ME}} =(4)
\item 
\mbox{\hyperlink{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_renew_token_error_code_af6a4574dace46ca92dc767344fb87634}{R\+E\+N\+E\+W\+\_\+\+T\+O\+K\+E\+N\+\_\+\+I\+N\+C\+O\+N\+S\+I\+S\+T\+E\+N\+T\+\_\+\+A\+P\+P\+ID}} =(5)
\item 
\mbox{\hyperlink{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_renew_token_error_code_a563288616798767a07b38c4322784742}{R\+E\+N\+E\+W\+\_\+\+T\+O\+K\+E\+N\+\_\+\+C\+A\+N\+C\+E\+L\+E\+D\+\_\+\+B\+Y\+\_\+\+N\+E\+W\+\_\+\+R\+E\+Q\+U\+E\+ST}} =(6)
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Represents the error codes after calling {\ttfamily renew\+Token}. 

\begin{DoxySince}{Since}
4.\+6.\+0 
\end{DoxySince}


\doxysubsection{Member Data Documentation}
\mbox{\Hypertarget{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_renew_token_error_code_a23211473973b1a48dff29146141e3d0c}\label{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_renew_token_error_code_a23211473973b1a48dff29146141e3d0c}} 
\index{io.agora.rtc2.Constants.RenewTokenErrorCode@{io.agora.rtc2.Constants.RenewTokenErrorCode}!RENEW\_TOKEN\_SUCCESS@{RENEW\_TOKEN\_SUCCESS}}
\index{RENEW\_TOKEN\_SUCCESS@{RENEW\_TOKEN\_SUCCESS}!io.agora.rtc2.Constants.RenewTokenErrorCode@{io.agora.rtc2.Constants.RenewTokenErrorCode}}
\doxysubsubsection{\texorpdfstring{RENEW\_TOKEN\_SUCCESS}{RENEW\_TOKEN\_SUCCESS}}
{\footnotesize\ttfamily io.\+agora.\+rtc2.\+Constants.\+Renew\+Token\+Error\+Code.\+R\+E\+N\+E\+W\+\_\+\+T\+O\+K\+E\+N\+\_\+\+S\+U\+C\+C\+E\+SS =(0)}

(0)\+: Token updated successfully. \mbox{\Hypertarget{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_renew_token_error_code_aad75122fcf193866418eacb9ab696052}\label{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_renew_token_error_code_aad75122fcf193866418eacb9ab696052}} 
\index{io.agora.rtc2.Constants.RenewTokenErrorCode@{io.agora.rtc2.Constants.RenewTokenErrorCode}!RENEW\_TOKEN\_FAILURE@{RENEW\_TOKEN\_FAILURE}}
\index{RENEW\_TOKEN\_FAILURE@{RENEW\_TOKEN\_FAILURE}!io.agora.rtc2.Constants.RenewTokenErrorCode@{io.agora.rtc2.Constants.RenewTokenErrorCode}}
\doxysubsubsection{\texorpdfstring{RENEW\_TOKEN\_FAILURE}{RENEW\_TOKEN\_FAILURE}}
{\footnotesize\ttfamily io.\+agora.\+rtc2.\+Constants.\+Renew\+Token\+Error\+Code.\+R\+E\+N\+E\+W\+\_\+\+T\+O\+K\+E\+N\+\_\+\+F\+A\+I\+L\+U\+RE =(1)}

(1)\+: Token update failed. It is recommended to generate a new Token and retry {\ttfamily renew\+Token}. \mbox{\Hypertarget{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_renew_token_error_code_a5b0ac4f7995790a9461dbd81be751a69}\label{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_renew_token_error_code_a5b0ac4f7995790a9461dbd81be751a69}} 
\index{io.agora.rtc2.Constants.RenewTokenErrorCode@{io.agora.rtc2.Constants.RenewTokenErrorCode}!RENEW\_TOKEN\_TOKEN\_EXPIRED@{RENEW\_TOKEN\_TOKEN\_EXPIRED}}
\index{RENEW\_TOKEN\_TOKEN\_EXPIRED@{RENEW\_TOKEN\_TOKEN\_EXPIRED}!io.agora.rtc2.Constants.RenewTokenErrorCode@{io.agora.rtc2.Constants.RenewTokenErrorCode}}
\doxysubsubsection{\texorpdfstring{RENEW\_TOKEN\_TOKEN\_EXPIRED}{RENEW\_TOKEN\_TOKEN\_EXPIRED}}
{\footnotesize\ttfamily io.\+agora.\+rtc2.\+Constants.\+Renew\+Token\+Error\+Code.\+R\+E\+N\+E\+W\+\_\+\+T\+O\+K\+E\+N\+\_\+\+T\+O\+K\+E\+N\+\_\+\+E\+X\+P\+I\+R\+ED =(2)}

(2)\+: Token update failed because the provided Token has expired. It is recommended to generate a new Token with a longer expiration time and retry {\ttfamily renew\+Token}. \mbox{\Hypertarget{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_renew_token_error_code_ae78b04dc1d6337d6b86fc4687f51c516}\label{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_renew_token_error_code_ae78b04dc1d6337d6b86fc4687f51c516}} 
\index{io.agora.rtc2.Constants.RenewTokenErrorCode@{io.agora.rtc2.Constants.RenewTokenErrorCode}!RENEW\_TOKEN\_INVALID\_TOKEN@{RENEW\_TOKEN\_INVALID\_TOKEN}}
\index{RENEW\_TOKEN\_INVALID\_TOKEN@{RENEW\_TOKEN\_INVALID\_TOKEN}!io.agora.rtc2.Constants.RenewTokenErrorCode@{io.agora.rtc2.Constants.RenewTokenErrorCode}}
\doxysubsubsection{\texorpdfstring{RENEW\_TOKEN\_INVALID\_TOKEN}{RENEW\_TOKEN\_INVALID\_TOKEN}}
{\footnotesize\ttfamily io.\+agora.\+rtc2.\+Constants.\+Renew\+Token\+Error\+Code.\+R\+E\+N\+E\+W\+\_\+\+T\+O\+K\+E\+N\+\_\+\+I\+N\+V\+A\+L\+I\+D\+\_\+\+T\+O\+K\+EN =(3)}

(3)\+: Token update failed because the provided Token is invalid. Common reasons include\+: the project has enabled App Certificate in the Agora Console but did not use a Token when joining the channel; the uid specified in {\ttfamily join\+Channel} is inconsistent with the uid used when generating the Token; the channel name specified in {\ttfamily join\+Channel} is inconsistent with the one used when generating the Token. It is recommended to check the Token generation process, generate a new Token, and retry {\ttfamily renew\+Token}. \mbox{\Hypertarget{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_renew_token_error_code_ae39be1b3980b3b9322f50ce22c712fb8}\label{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_renew_token_error_code_ae39be1b3980b3b9322f50ce22c712fb8}} 
\index{io.agora.rtc2.Constants.RenewTokenErrorCode@{io.agora.rtc2.Constants.RenewTokenErrorCode}!RENEW\_TOKEN\_INVALID\_CHANNEL\_NAME@{RENEW\_TOKEN\_INVALID\_CHANNEL\_NAME}}
\index{RENEW\_TOKEN\_INVALID\_CHANNEL\_NAME@{RENEW\_TOKEN\_INVALID\_CHANNEL\_NAME}!io.agora.rtc2.Constants.RenewTokenErrorCode@{io.agora.rtc2.Constants.RenewTokenErrorCode}}
\doxysubsubsection{\texorpdfstring{RENEW\_TOKEN\_INVALID\_CHANNEL\_NAME}{RENEW\_TOKEN\_INVALID\_CHANNEL\_NAME}}
{\footnotesize\ttfamily io.\+agora.\+rtc2.\+Constants.\+Renew\+Token\+Error\+Code.\+R\+E\+N\+E\+W\+\_\+\+T\+O\+K\+E\+N\+\_\+\+I\+N\+V\+A\+L\+I\+D\+\_\+\+C\+H\+A\+N\+N\+E\+L\+\_\+\+N\+A\+ME =(4)}

(4)\+: Token update failed because the channel name in the Token does not match the current channel. It is recommended to check the channel name, generate a new Token, and retry {\ttfamily renew\+Token}. \mbox{\Hypertarget{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_renew_token_error_code_af6a4574dace46ca92dc767344fb87634}\label{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_renew_token_error_code_af6a4574dace46ca92dc767344fb87634}} 
\index{io.agora.rtc2.Constants.RenewTokenErrorCode@{io.agora.rtc2.Constants.RenewTokenErrorCode}!RENEW\_TOKEN\_INCONSISTENT\_APPID@{RENEW\_TOKEN\_INCONSISTENT\_APPID}}
\index{RENEW\_TOKEN\_INCONSISTENT\_APPID@{RENEW\_TOKEN\_INCONSISTENT\_APPID}!io.agora.rtc2.Constants.RenewTokenErrorCode@{io.agora.rtc2.Constants.RenewTokenErrorCode}}
\doxysubsubsection{\texorpdfstring{RENEW\_TOKEN\_INCONSISTENT\_APPID}{RENEW\_TOKEN\_INCONSISTENT\_APPID}}
{\footnotesize\ttfamily io.\+agora.\+rtc2.\+Constants.\+Renew\+Token\+Error\+Code.\+R\+E\+N\+E\+W\+\_\+\+T\+O\+K\+E\+N\+\_\+\+I\+N\+C\+O\+N\+S\+I\+S\+T\+E\+N\+T\+\_\+\+A\+P\+P\+ID =(5)}

(5)\+: Token update failed because the App ID in the Token does not match the current App ID. It is recommended to check the App ID, generate a new Token, and retry {\ttfamily renew\+Token}. \mbox{\Hypertarget{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_renew_token_error_code_a563288616798767a07b38c4322784742}\label{enumio_1_1agora_1_1rtc2_1_1_constants_1_1_renew_token_error_code_a563288616798767a07b38c4322784742}} 
\index{io.agora.rtc2.Constants.RenewTokenErrorCode@{io.agora.rtc2.Constants.RenewTokenErrorCode}!RENEW\_TOKEN\_CANCELED\_BY\_NEW\_REQUEST@{RENEW\_TOKEN\_CANCELED\_BY\_NEW\_REQUEST}}
\index{RENEW\_TOKEN\_CANCELED\_BY\_NEW\_REQUEST@{RENEW\_TOKEN\_CANCELED\_BY\_NEW\_REQUEST}!io.agora.rtc2.Constants.RenewTokenErrorCode@{io.agora.rtc2.Constants.RenewTokenErrorCode}}
\doxysubsubsection{\texorpdfstring{RENEW\_TOKEN\_CANCELED\_BY\_NEW\_REQUEST}{RENEW\_TOKEN\_CANCELED\_BY\_NEW\_REQUEST}}
{\footnotesize\ttfamily io.\+agora.\+rtc2.\+Constants.\+Renew\+Token\+Error\+Code.\+R\+E\+N\+E\+W\+\_\+\+T\+O\+K\+E\+N\+\_\+\+C\+A\+N\+C\+E\+L\+E\+D\+\_\+\+B\+Y\+\_\+\+N\+E\+W\+\_\+\+R\+E\+Q\+U\+E\+ST =(6)}

(6)\+: Token update was canceled because a new request was initiated, and the previous request was canceled. 