Updating secret token generation