예제 #1
0
 public bool SaveRefreshTokenPro(string verifyRefreshToken, string token, string refreshToken, int expiresIn, int refreshTokenExpiresIn, string ipAddress, int createTimestamp)
 {
     try
     {
         int    errCode = -1;
         string errMsg  = "fail";
         var    result  = CTMSContext.SP_Add_Member_RefreshToken(verifyRefreshToken, token, refreshToken, expiresIn, refreshTokenExpiresIn, ipAddress, createTimestamp, out errCode, out errMsg);
         if (errCode != 0)
         {
             throw new Exception(errMsg);
         }
         return(errCode == 0 ? true : false);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }