protected void RefreshAccessToken()
{
if (MasterAuthentication)
{
//for master authentication, just authenticate again to get the new access token
AuthenticateMaster(Email);
}
else
{
//for regular authentication, use refresh token to renew access token
RenewAccessToken(RefreshToken);
}
}